lmnr 0.4.18__py3-none-any.whl → 0.4.19__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -131,41 +131,33 @@ class TracerWrapper(object):
131
131
  print("Warning: OpenAI library does not exist.")
132
132
  elif instrument == Instruments.ANTHROPIC:
133
133
  if not init_anthropic_instrumentor(should_enrich_metrics):
134
- print(
135
- "Warning: Anthropic library does not exist."
136
- )
134
+ print("Warning: Anthropic library does not exist.")
137
135
  elif instrument == Instruments.COHERE:
138
136
  if not init_cohere_instrumentor():
139
137
  print("Warning: Cohere library does not exist.")
140
138
  elif instrument == Instruments.PINECONE:
141
139
  if not init_pinecone_instrumentor():
142
- print(
143
- "Warning: Pinecone library does not exist."
144
- )
140
+ print("Warning: Pinecone library does not exist.")
145
141
  elif instrument == Instruments.CHROMA:
146
142
  if not init_chroma_instrumentor():
147
143
  print("Warning: Chroma library does not exist.")
148
144
  elif instrument == Instruments.GOOGLE_GENERATIVEAI:
149
145
  if not init_google_generativeai_instrumentor():
150
- print("Warning: Google Generative AI library does not exist.")
151
- elif instrument == Instruments.LANGCHAIN:
152
- if not init_langchain_instrumentor():
153
146
  print(
154
- "Warning: LangChain library does not exist."
147
+ "Warning: Google Generative AI library does not exist."
155
148
  )
149
+ elif instrument == Instruments.LANGCHAIN:
150
+ if not init_langchain_instrumentor():
151
+ print("Warning: LangChain library does not exist.")
156
152
  elif instrument == Instruments.MISTRAL:
157
153
  if not init_mistralai_instrumentor():
158
- print(
159
- "Warning: MistralAI library does not exist."
160
- )
154
+ print("Warning: MistralAI library does not exist.")
161
155
  elif instrument == Instruments.OLLAMA:
162
156
  if not init_ollama_instrumentor():
163
157
  print("Warning: Ollama library does not exist.")
164
158
  elif instrument == Instruments.LLAMA_INDEX:
165
159
  if not init_llama_index_instrumentor():
166
- print(
167
- "Warning: LlamaIndex library does not exist."
168
- )
160
+ print("Warning: LlamaIndex library does not exist.")
169
161
  elif instrument == Instruments.MILVUS:
170
162
  if not init_milvus_instrumentor():
171
163
  print("Warning: Milvus library does not exist.")
@@ -174,14 +166,10 @@ class TracerWrapper(object):
174
166
  print("Warning: Transformers library does not exist.")
175
167
  elif instrument == Instruments.TOGETHER:
176
168
  if not init_together_instrumentor():
177
- print(
178
- "Warning: TogetherAI library does not exist."
179
- )
169
+ print("Warning: TogetherAI library does not exist.")
180
170
  elif instrument == Instruments.REQUESTS:
181
171
  if not init_requests_instrumentor():
182
- print(
183
- "Warning: Requests library does not exist."
184
- )
172
+ print("Warning: Requests library does not exist.")
185
173
  elif instrument == Instruments.URLLIB3:
186
174
  if not init_urllib3_instrumentor():
187
175
  print("Warning: urllib3 library does not exist.")
@@ -193,22 +181,16 @@ class TracerWrapper(object):
193
181
  print("Warning: Bedrock library does not exist.")
194
182
  elif instrument == Instruments.REPLICATE:
195
183
  if not init_replicate_instrumentor():
196
- print(
197
- "Warning: Replicate library does not exist."
198
- )
184
+ print("Warning: Replicate library does not exist.")
199
185
  elif instrument == Instruments.VERTEXAI:
200
186
  if not init_vertexai_instrumentor():
201
- print(
202
- "Warning: Vertex AI library does not exist."
203
- )
187
+ print("Warning: Vertex AI library does not exist.")
204
188
  elif instrument == Instruments.WATSONX:
205
189
  if not init_watsonx_instrumentor():
206
190
  print("Warning: Watsonx library does not exist.")
207
191
  elif instrument == Instruments.WEAVIATE:
208
192
  if not init_weaviate_instrumentor():
209
- print(
210
- "Warning: Weaviate library does not exist."
211
- )
193
+ print("Warning: Weaviate library does not exist.")
212
194
  elif instrument == Instruments.ALEPHALPHA:
213
195
  if not init_alephalpha_instrumentor():
214
196
  print("Warning: Aleph Alpha library does not exist.")
@@ -321,9 +303,7 @@ def update_association_properties(properties: dict) -> None:
321
303
 
322
304
  def _set_association_properties_attributes(span, properties: dict) -> None:
323
305
  for key, value in properties.items():
324
- span.set_attribute(
325
- f"{ASSOCIATION_PROPERTIES}.{key}", value
326
- )
306
+ span.set_attribute(f"{ASSOCIATION_PROPERTIES}.{key}", value)
327
307
 
328
308
 
329
309
  def get_span_path(span_name: str) -> str:
@@ -444,6 +424,7 @@ def init_anthropic_instrumentor(should_enrich_metrics: bool):
444
424
  instrumentor = AnthropicInstrumentor(
445
425
  # exception_logger=lambda e: Telemetry().log_exception(e),
446
426
  enrich_token_usage=should_enrich_metrics,
427
+ upload_base64_image=None,
447
428
  )
448
429
  if not instrumentor.is_instrumented_by_opentelemetry:
449
430
  instrumentor.instrument()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lmnr
3
- Version: 0.4.18
3
+ Version: 0.4.19
4
4
  Summary: Python SDK for Laminar AI
5
5
  License: Apache-2.0
6
6
  Author: lmnr.ai
@@ -38,14 +38,14 @@ lmnr/traceloop_sdk/tracing/__init__.py,sha256=Ckq7zCM26VdJVB5tIZv0GTPyMZKyfso_KW
38
38
  lmnr/traceloop_sdk/tracing/attributes.py,sha256=PXwS1GCZKdjQSypl__BSkQNZhh21RyzwTPnDOh61bnQ,250
39
39
  lmnr/traceloop_sdk/tracing/content_allow_list.py,sha256=3feztm6PBWNelc8pAZUcQyEGyeSpNiVKjOaDk65l2ps,846
40
40
  lmnr/traceloop_sdk/tracing/context_manager.py,sha256=csVlB6kDmbgSPsROHwnddvGGblx55v6lJMRj0wsSMQM,304
41
- lmnr/traceloop_sdk/tracing/tracing.py,sha256=pB8vImUZRMaahkHLaQP73cbMtYDyvpvEdWsa49520Yo,36061
41
+ lmnr/traceloop_sdk/tracing/tracing.py,sha256=_HDLuyy4XgobC1ig4qz5jYbB4tWAZSfD6gbgUqwmYJU,35522
42
42
  lmnr/traceloop_sdk/utils/__init__.py,sha256=pNhf0G3vTd5ccoc03i1MXDbricSaiqCbi1DLWhSekK8,604
43
43
  lmnr/traceloop_sdk/utils/in_memory_span_exporter.py,sha256=H_4TRaThMO1H6vUQ0OpQvzJk_fZH0OOsRAM1iZQXsR8,2112
44
44
  lmnr/traceloop_sdk/utils/json_encoder.py,sha256=dK6b_axr70IYL7Vv-bu4wntvDDuyntoqsHaddqX7P58,463
45
45
  lmnr/traceloop_sdk/utils/package_check.py,sha256=TZSngzJOpFhfUZLXIs38cpMxQiZSmp0D-sCrIyhz7BA,251
46
46
  lmnr/traceloop_sdk/version.py,sha256=OlatFEFA4ttqSSIiV8jdE-sq3KG5zu2hnC4B4mzWF3s,23
47
- lmnr-0.4.18.dist-info/LICENSE,sha256=67b_wJHVV1CBaWkrKFWU1wyqTPSdzH77Ls-59631COg,10411
48
- lmnr-0.4.18.dist-info/METADATA,sha256=VK2Lmo9JHkUpo-gpakHy2e2QjNcrrEx7MU6KN8I5X1c,10478
49
- lmnr-0.4.18.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
50
- lmnr-0.4.18.dist-info/entry_points.txt,sha256=K1jE20ww4jzHNZLnsfWBvU3YKDGBgbOiYG5Y7ivQcq4,37
51
- lmnr-0.4.18.dist-info/RECORD,,
47
+ lmnr-0.4.19.dist-info/LICENSE,sha256=67b_wJHVV1CBaWkrKFWU1wyqTPSdzH77Ls-59631COg,10411
48
+ lmnr-0.4.19.dist-info/METADATA,sha256=CqaJO_asJ8krl1eq3FUi4Jkg6D3RQ25k--dg9AddDSo,10478
49
+ lmnr-0.4.19.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
50
+ lmnr-0.4.19.dist-info/entry_points.txt,sha256=K1jE20ww4jzHNZLnsfWBvU3YKDGBgbOiYG5Y7ivQcq4,37
51
+ lmnr-0.4.19.dist-info/RECORD,,
File without changes
File without changes