mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix anthropic streaming
This commit is contained in:
parent
36a6ac9b08
commit
5040d08f79
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ def completion(
|
|||
max_tokens_to_sample=max_tokens_to_sample,
|
||||
**optional_params
|
||||
)
|
||||
if optional_params['stream'] == True:
|
||||
if 'stream' in optional_params and optional_params['stream'] == True:
|
||||
# don't try to access stream object,
|
||||
response = CustomStreamWrapper(completion)
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue