opentelemetry-instrumentation-openai 0.40.7__tar.gz → 0.40.8__tar.gz
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.
Potentially problematic release.
This version of opentelemetry-instrumentation-openai might be problematic. Click here for more details.
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/PKG-INFO +1 -1
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/shared/chat_wrappers.py +1 -0
- opentelemetry_instrumentation_openai-0.40.8/opentelemetry/instrumentation/openai/version.py +1 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/pyproject.toml +1 -1
- opentelemetry_instrumentation_openai-0.40.7/opentelemetry/instrumentation/openai/version.py +0 -1
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/README.md +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/shared/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/shared/completion_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/shared/config.py +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/shared/embeddings_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/shared/image_gen_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/utils.py +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/v0/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/v1/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/v1/assistant_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.40.7 → opentelemetry_instrumentation_openai-0.40.8}/opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py +0 -0
|
@@ -369,6 +369,7 @@ async def _set_prompts(span, messages):
|
|
|
369
369
|
|
|
370
370
|
for i, msg in enumerate(messages):
|
|
371
371
|
prefix = f"{SpanAttributes.LLM_PROMPTS}.{i}"
|
|
372
|
+
msg = msg if isinstance(msg, dict) else model_as_dict(msg)
|
|
372
373
|
|
|
373
374
|
_set_span_attribute(span, f"{prefix}.role", msg.get("role"))
|
|
374
375
|
if msg.get("content"):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.40.8"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.40.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|