litellm - 💡(How to fix) Fix [Bug]: Opik: automatically use assigned opik metdata from user api key when missing in request [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

This is a fix for this previously implemented feature: https://github.com/BerriAI/litellm/issues/15895 After the Opik integration was revised, this feature was removed and no longer worked properly

This feature is also mentioned in the live documentation. Users are trying to get the Opik integration to work based on the documentation, but it isn't working. https://docs.litellm.ai/docs/observability/opik_integration

Purpose of this feature: Sometimes, as a LiteLLM admin, you can't control which metadata is attached to the request. Currently, the caller must select the Opik integration and the correct project themselves. The advantage of this API key integration is that the LiteLLM admin can assign requests to the correct Opik projects even if the appropriate metadata is missing from the request.

--> I will implement my previous changes to adapt them to the new code structure

Steps to Reproduce

  1. Do not send opik metadata in a llm request
  2. Store a metadata on a litellm api key
  3. no traces in opik visible

Relevant log output

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

latest

Twitter / LinkedIn details

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: Opik: automatically use assigned opik metdata from user api key when missing in request [1 pull requests]