Merge pull request #3694 from BerriAI/litellm_allow_setting_anthropic_beta

[Feat] Support Anthropic `tools-2024-05-16` - Set Custom Anthropic Custom Headers
This commit is contained in:
Ishaan Jaff 2024-05-16 15:48:26 -07:00 committed by GitHub
commit 97324800ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 3 deletions

View file

@ -552,7 +552,7 @@ def completion(
model_info = kwargs.get("model_info", None)
proxy_server_request = kwargs.get("proxy_server_request", None)
fallbacks = kwargs.get("fallbacks", None)
headers = kwargs.get("headers", None)
headers = kwargs.get("headers", None) or extra_headers
num_retries = kwargs.get("num_retries", None) ## deprecated
max_retries = kwargs.get("max_retries", None)
context_window_fallback_dict = kwargs.get("context_window_fallback_dict", None)