feat: Add headers to VLLM Passthrough requests [Log success Events] #16532
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title
feat: Add headers to VLLM Passthrough requests [Log success Events]
Relevant issues
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitType
🆕 New Feature
🐛 Bug Fix
Changes
I set a breakpoint inside the

async_log_success_eventfunction for a CustomLogger. You can check that in kwargs -> litellm_params -> proxy_server_request theheadersdo not exist.Here it's after the modifcation, add the header to be retrieve for callback function

Unit test for the function I make changes

Just to concern, you can check the

headersI am adding does not have relation to the headers retrieved in the request for client. Thex-requester-tokenfor example that appears in the other print is not shown here.