Skip to content

Conversation

@Sameerlite
Copy link
Collaborator

Title

Enable OpenAI metadata passthrough in the request

Relevant issues

Fixes #12997

Pre-Submission checklist

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

📖 Documentation
✅ Test
🐛 Bug Fix

Changes

  • Added a new method to send the requester's metdata only to the openai request
  • Added test_requester_metadata_forwarded_to_openai to confirm requester metadata is sanitized and sent when preview mode is enabled.
  • Documented the metadata usage pattern in docs/my-website/docs/providers/openai.md, showing how to structure metadata.requester_metadata for OpenAI dashboards.

@vercel
Copy link

vercel bot commented Nov 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Error Error Nov 12, 2025 5:05pm

@Sameerlite Sameerlite marked this pull request as ready for review November 12, 2025 17:05
Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, can we re-run ci/cd

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]: LiteLLM SDK Client does not send out metadata upstream

3 participants