langtrace-python-sdk 3.3.24__py3-none-any.whl → 3.3.25__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ TIKTOKEN_MODEL_MAPPING = {
10
10
 
11
11
  SERVICE_PROVIDERS = {
12
12
  "ANTHROPIC": "Anthropic",
13
+ "ARCH": "Arch",
13
14
  "AZURE": "Azure",
14
15
  "CHROMA": "Chroma",
15
16
  "CREWAI": "CrewAI",
@@ -254,6 +254,8 @@ def chat_completions_create(version: str, tracer: Tracer) -> Callable:
254
254
  service_provider = SERVICE_PROVIDERS["XAI"]
255
255
  elif "deepseek" in get_base_url(instance):
256
256
  service_provider = SERVICE_PROVIDERS["DEEPSEEK"]
257
+ elif ":12000" in get_base_url(instance) or ":10000" in get_base_url(instance):
258
+ service_provider = SERVICE_PROVIDERS["ARCH"]
257
259
  llm_prompts = []
258
260
  for item in kwargs.get("messages", []):
259
261
  tools = get_tool_calls(item)
@@ -348,6 +350,8 @@ def async_chat_completions_create(version: str, tracer: Tracer) -> Callable:
348
350
  service_provider = SERVICE_PROVIDERS["XAI"]
349
351
  elif "deepseek" in get_base_url(instance):
350
352
  service_provider = SERVICE_PROVIDERS["DEEPSEEK"]
353
+ elif ":12000" in get_base_url(instance) or ":10000" in get_base_url(instance):
354
+ service_provider = SERVICE_PROVIDERS["ARCH"]
351
355
  llm_prompts = []
352
356
  for item in kwargs.get("messages", []):
353
357
  tools = get_tool_calls(item)
@@ -447,6 +451,8 @@ def embeddings_create(version: str, tracer: Tracer) -> Callable:
447
451
  service_provider = SERVICE_PROVIDERS["XAI"]
448
452
  elif "deepseek" in base_url:
449
453
  service_provider = SERVICE_PROVIDERS["DEEPSEEK"]
454
+ elif ":12000" in base_url or ":10000" in base_url:
455
+ service_provider = SERVICE_PROVIDERS["ARCH"]
450
456
 
451
457
  span_attributes = {
452
458
  **get_langtrace_attributes(version, service_provider, vendor_type="llm"),
@@ -533,6 +539,8 @@ def async_embeddings_create(version: str, tracer: Tracer) -> Callable:
533
539
  service_provider = SERVICE_PROVIDERS["XAI"]
534
540
  elif "deepseek" in base_url:
535
541
  service_provider = SERVICE_PROVIDERS["DEEPSEEK"]
542
+ elif ":12000" in base_url or ":10000" in base_url:
543
+ service_provider = SERVICE_PROVIDERS["ARCH"]
536
544
 
537
545
  span_attributes = {
538
546
  **get_langtrace_attributes(version, service_provider, vendor_type="llm"),
@@ -1 +1 @@
1
- __version__ = "3.3.24"
1
+ __version__ = "3.3.25"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langtrace-python-sdk
3
- Version: 3.3.24
3
+ Version: 3.3.25
4
4
  Summary: Python SDK for LangTrace
5
5
  Project-URL: Homepage, https://github.com/Scale3-Labs/langtrace-python-sdk
6
6
  Author-email: Scale3 Labs <engineering@scale3labs.com>
@@ -111,7 +111,7 @@ examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56sn
111
111
  examples/weaviate_example/query_text.py,sha256=wPHQTc_58kPoKTZMygVjTj-2ZcdrIuaausJfMxNQnQc,127162
112
112
  langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
113
113
  langtrace_python_sdk/langtrace.py,sha256=jvfrnkAxc41dmIvwNuVcXwCWyV2vqhGV5qAr5KiMHBA,13239
114
- langtrace_python_sdk/version.py,sha256=BYdEglI7p7QqwHU1MEOvXpBRXVFpeqhDQ3obeVJACVs,23
114
+ langtrace_python_sdk/version.py,sha256=az2Dhu6yZKkkThV8SgI4rYzbUuCu_ZG2DXjZd5fMiF0,23
115
115
  langtrace_python_sdk/constants/__init__.py,sha256=3CNYkWMdd1DrkGqzLUgNZXjdAlM6UFMlf_F-odAToyc,146
116
116
  langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=EVCrouYCpY98f0KSaKr4PzNxPULTZZO6dSA_crEOyJU,106
117
117
  langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -119,7 +119,7 @@ langtrace_python_sdk/constants/instrumentation/anthropic.py,sha256=YX3llt3zwDY6X
119
119
  langtrace_python_sdk/constants/instrumentation/aws_bedrock.py,sha256=QwKtO4NBarOZoGkt5cFCcpxAw3zvZxcMMWBbzPPGv-g,422
120
120
  langtrace_python_sdk/constants/instrumentation/chroma.py,sha256=hiPGYdHS0Yj4Kh3eaYBbuCAl_swqIygu80yFqkOgdak,955
121
121
  langtrace_python_sdk/constants/instrumentation/cohere.py,sha256=9yD133VdrYZ5BoJR4nJHlj67gHEImB9-KsD-NkzHW1I,1159
122
- langtrace_python_sdk/constants/instrumentation/common.py,sha256=DPDX8icb0Tj3OrgpbL9WeiIaMG7Si2IKiSL8YRwwor4,1203
122
+ langtrace_python_sdk/constants/instrumentation/common.py,sha256=0_38AXPFLZnnI6T7wMiSDzTP8AAT-dmNi7Mui0q5WMg,1223
123
123
  langtrace_python_sdk/constants/instrumentation/embedchain.py,sha256=HodCJvaFjILoOG50OwFObxfVxt_8VUaIAIqvgoN3tzo,278
124
124
  langtrace_python_sdk/constants/instrumentation/gemini.py,sha256=UAmfgg9FM7uNeOCdPfWlir6OIH-8BoxFGPRpdBd9ZZs,358
125
125
  langtrace_python_sdk/constants/instrumentation/groq.py,sha256=VFXmIl4aqGY_fS0PAmjPj_Qm7Tibxbx7Ur_e7rQpqXc,134
@@ -206,7 +206,7 @@ langtrace_python_sdk/instrumentation/ollama/instrumentation.py,sha256=jdsvkqUJAA
206
206
  langtrace_python_sdk/instrumentation/ollama/patch.py,sha256=w99r9wCCVDdJnZQEezYE2lW_iNFEtrldt9vq3ISAsag,5375
207
207
  langtrace_python_sdk/instrumentation/openai/__init__.py,sha256=VPHRNCQEdkizIVP2d0Uw_a7t8XOTSTprEIB8oboJFbs,95
208
208
  langtrace_python_sdk/instrumentation/openai/instrumentation.py,sha256=PZxI0qfoud1VsKGmJu49YDp0Z9z9TzCR8qxR3uznOMA,2810
209
- langtrace_python_sdk/instrumentation/openai/patch.py,sha256=u8qlCooN-JmGVWLe7jwAeBMHTIi35ktVvL9gWVBfDko,26809
209
+ langtrace_python_sdk/instrumentation/openai/patch.py,sha256=EQRE_b_os6jqdqKOj6XZb58QT3tUyCAcFUiwM0CDDLU,27329
210
210
  langtrace_python_sdk/instrumentation/openai/types.py,sha256=aVkoa7tmAbYfyOhnyMrDaVjQuwhmRNLMthlNtKMtWX8,4311
211
211
  langtrace_python_sdk/instrumentation/pinecone/__init__.py,sha256=DzXyGh9_MGWveJvXULkFwdkf7PbG2s3bAWtT1Dmz7Ok,99
212
212
  langtrace_python_sdk/instrumentation/pinecone/instrumentation.py,sha256=HDXkRITrVPwdQEoOYJOfMzZE_2-vDDvuqHTlD8W1lQw,1845
@@ -277,8 +277,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
277
277
  tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
278
278
  tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
279
279
  tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
280
- langtrace_python_sdk-3.3.24.dist-info/METADATA,sha256=V0Xhmeqs2wlRHimItoq_pExSCrYd9JPtWQn-F_brXW8,15676
281
- langtrace_python_sdk-3.3.24.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
282
- langtrace_python_sdk-3.3.24.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
283
- langtrace_python_sdk-3.3.24.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
284
- langtrace_python_sdk-3.3.24.dist-info/RECORD,,
280
+ langtrace_python_sdk-3.3.25.dist-info/METADATA,sha256=s4G6wsJb-vgM1moTavHUaw6q_aWzKvpxrLgapDjxOsU,15676
281
+ langtrace_python_sdk-3.3.25.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
282
+ langtrace_python_sdk-3.3.25.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
283
+ langtrace_python_sdk-3.3.25.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
284
+ langtrace_python_sdk-3.3.25.dist-info/RECORD,,