Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
fix: azure model name
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Nov 5, 2024
1 parent 7dea1e3 commit be8ad98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lunary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,8 @@ def on_llm_start(
) # Sometimes, for example with ChatAnthropic, `invocation_params` is empty

name = (
params.get("model")
metadata.get("ls_model_name") # for Azure OpenAI
or params.get("model")
or params.get("model_name")
or params.get("model_id")
or params.get("deployment_name")
Expand Down Expand Up @@ -1015,7 +1016,8 @@ def on_chat_model_start(
) # Sometimes, for example with ChatAnthropic, `invocation_params` is empty

name = (
params.get("model")
metadata.get("ls_model_name") # for Azure OpenAI
or params.get("model")
or params.get("model_name")
or params.get("model_id")
or params.get("deployment_name")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lunary"
version = "1.1.11"
version = "1.1.12"
description = "Observability, analytics and evaluations for AI agents and chatbots."
authors = ["lunary <hello@lunary.ai>"]
readme = "README.md"
Expand Down

0 comments on commit be8ad98

Please sign in to comment.