Skip to content
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

Add missing extra headers for other bedrock models #3501

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

themrzmaster
Copy link
Contributor

Following this PR: #3299
it currently only works for anthropic. This PR make ir work for other bedrock models

Copy link

vercel bot commented May 7, 2024

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 May 7, 2024 5:01pm

@@ -5921,15 +5921,15 @@ def get_supported_openai_params(model: str, custom_llm_provider: str):
elif model.startswith("anthropic"):
return litellm.AmazonAnthropicConfig().get_supported_openai_params()
elif model.startswith("ai21"):
return ["max_tokens", "temperature", "top_p", "stream"]
return ["max_tokens", "temperature", "top_p", "stream", "extra_headers"]
Copy link
Contributor

Choose a reason for hiding this comment

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

@themrzmaster 'extra_headers' isn't an openai param afaik.

LiteLLM should already be passing this straight through to bedrock, without needing this code block.

Please can you remove this

@krrishdholakia
Copy link
Contributor

hey @themrzmaster is this still needed after the move to bedrock_httpx.py?

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.

None yet

2 participants