Repository navigation
feat(adapters): Add support for extra headers to more backend providers - #661
Merged
Merged
Conversation
Contributor
Author
|
Testing: Bedrock, Vertex, Anthropic: In addition to showing the extra_headers being set on the LiteLLM API call, This is different from OpenAI (and Azure OpenAI) where there is no extra -H shown in the litellm trace, but instead the additional 'header' actually features within the body I am unable to test bedrock, vertex,anthropic, bedrock specifically in terms of the headers -- but the API is called correctly as per docs. We do also know the openai connector does work as we have a valid test system that requires headers to test against, so the fact azure behaves the same is also logical. |
Tomas2D
approved these changes
Mar 26, 2025
Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Which issue(s) does this pull-request address?
Closes: #586
Description
Adds support for extra headers to:
In the above cases support for extra_headers is documented in the LiteLLM docs and/or found from a code scan
Changes were not made to
due to lack of support in liteLLM.
Testing
IN PROGRESS
No test is made that the extra headers have any effect on the actual provider.
Checklist
General
/ TypeScript
Pythonfor Python changes,TypeScriptfor TypeScript changesCode quality checks
poe lintorpoe lint --fix/ TypeScriptyarn lintoryarn lint:fixpoe formatorpoe format --fix/ TypeScript:yarn formatoryarn format:fixpoe type-checkTesting
poe test --type unit/ TypeScriptyarn test:unitpoe test --type e2e/ TypeScript:yarn test:e2epoe test --type integrationDocumentation
poe docs --type build