Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(py sdk): pass custom model name to langchain #713

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/python-sdk/lunary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,8 +1075,8 @@ def on_llm_start(
) # Sometimes, for example with ChatAnthropic, `invocation_params` is empty

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

name = (
metadata.get("ls_model_name") # for Azure OpenAI
or metadata.get("model_name") # custom model name
metadata.get("model_name") # custom model name
or metadata.get("ls_model_name") # for Azure OpenAI
or params.get("model")
or params.get("model_name")
or params.get("model_id")
Expand Down
4 changes: 2 additions & 2 deletions packages/python-sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lunary"
version = "1.4.1"
version = "1.4.3"
description = "Observability, analytics and evaluations for AI agents and chatbots."
authors = ["lunary <[email protected]>"]
readme = "README.md"
Expand All @@ -9,7 +9,7 @@ documentation = "https://lunary.ai/docs/py"
keywords = ["Lunary", "lunary.ai", "Langchain", "AI", "Analytics", "Monitoring"]

[tool.poetry.dependencies]
python = ">=3.10.0,<3.13"
python = ">=3.10.0"
requests = "^2.31.0"
setuptools = ">=72.1.0"
tenacity = "^8.2.3"
Expand Down
Loading