Merge pull request #1513 from costly-ai/main

Allow overriding headers for anthropic
This commit is contained in:
Ishaan Jaff 2024-01-19 15:21:45 -08:00 committed by GitHub
commit 268f9e3c7e
2 changed files with 3 additions and 1 deletions

View file

@ -972,6 +972,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,