extra headers

This commit is contained in:
Lucca Zenobio 2024-03-21 10:43:27 -03:00
parent 872ff6176d
commit 0c0780be83
4 changed files with 21 additions and 6 deletions

View file

@ -5146,7 +5146,7 @@ def get_supported_openai_params(model: str, custom_llm_provider: str):
"""
if custom_llm_provider == "bedrock":
if model.startswith("anthropic.claude-3"):
return litellm.AmazonAnthropicClaude3Config().get_supported_openai_params()
return litellm.AmazonAnthropicClaude3Config().get_supported_openai_params() + ["extra_headers"]
elif model.startswith("anthropic"):
return litellm.AmazonAnthropicConfig().get_supported_openai_params()
elif model.startswith("ai21"):