Skip to content

Commit cbd7495

Browse files
karthikscale3pyschtalizenhom
authored
Release support for DeepSeek (#420)
* remove logs * remove requirements * Bump version * Squash * minor * switch to http exporter * Fix swapped arguments in Ollama instrumentation (#416) Arguments for `StreamWrapper` in `ageneric_patch` are swapped Co-authored-by: Ali Waleed <[email protected]> * Bump version (#417) * add deepseek support (#419) --------- Co-authored-by: Nick Vinogradov <[email protected]> Co-authored-by: Ali Waleed <[email protected]>
1 parent 6a33f99 commit cbd7495

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/langtrace_python_sdk/constants/instrumentation/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"AZURE": "Azure",
1414
"CHROMA": "Chroma",
1515
"CREWAI": "CrewAI",
16+
"DEEPSEEK": "DeepSeek",
1617
"DSPY": "DSPy",
1718
"GROQ": "Groq",
1819
"LANGCHAIN": "Langchain",

src/langtrace_python_sdk/instrumentation/openai/patch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ def traced_method(
252252
service_provider = SERVICE_PROVIDERS["GROQ"]
253253
elif "x.ai" in get_base_url(instance):
254254
service_provider = SERVICE_PROVIDERS["XAI"]
255+
elif "deepseek" in get_base_url(instance):
256+
service_provider = SERVICE_PROVIDERS["DEEPSEEK"]
255257
llm_prompts = []
256258
for item in kwargs.get("messages", []):
257259
tools = get_tool_calls(item)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.3.10"
1+
__version__ = "3.3.11"

0 commit comments

Comments
 (0)