Skip to content

Fix datadog llm observability logging + (Responses API) Ensures handling for undocumented event types #10206

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

Merged
merged 8 commits into from
Apr 23, 2025

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented Apr 22, 2025

  • fix(openai.py): initial commit adding generic event type for openai responses api streaming

Ensures handling for undocumented event types - e.g. "response.reasoning_summary_part.added"

  • fix(transformation.py): handle unknown openai response type

  • fix(datadog_llm_observability.py): handle dict[str, any] -> dict[str, str] conversion

Fixes #9494

  • test: add more unit testing

  • test: add unit test

  • fix(common_utils.py): fix message with content list

  • test: update testing

Copy link

vercel bot commented Apr 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2025 6:59am

@krrishdholakia krrishdholakia merged commit 217681e into main Apr 23, 2025
8 of 30 checks passed
@krrishdholakia krrishdholakia changed the title Litellm dev 04 22 2025 p1 Fix datadog llm observability logging + (Responses API) Ensures handling for undocumented event types Apr 23, 2025
crisshaker pushed a commit to crisshaker/litellm that referenced this pull request Apr 23, 2025
* fix(openai.py): initial commit adding generic event type for openai responses api streaming

Ensures handling for undocumented event types - e.g. "response.reasoning_summary_part.added"

* fix(transformation.py): handle unknown openai response type

* fix(datadog_llm_observability.py): handle dict[str, any] -> dict[str, str] conversion

Fixes BerriAI#9494

* test: add more unit testing

* test: add unit test

* fix(common_utils.py): fix message with content list

* test: update testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: DataDogLLMObs: Error sending batch
1 participant