Allow overriding headers for anthropic

This commit is contained in:
Keegan McCallum 2024-01-18 20:12:59 -08:00 committed by GitHub
parent b6b584fdba
commit 3b719b2afd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -967,6 +967,7 @@ def completion(
encoding=encoding, # for calculating input/output tokens
api_key=api_key,
logging_obj=logging,
headers=headers,
)
if "stream" in optional_params and optional_params["stream"] == True:
# don't try to access stream object,