mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
undo change to always setting role to assistant
This commit is contained in:
parent
437c2b2316
commit
b966baa1f0
2 changed files with 2 additions and 2 deletions
|
@ -2451,7 +2451,7 @@ class CustomStreamWrapper:
|
|||
|
||||
def __next__(self):
|
||||
try:
|
||||
completion_obj = {"content": "", "role": "assistant"} # default to role being assistant
|
||||
completion_obj = {"content": "", "role": ""} # default to role being assistant
|
||||
if self.model in litellm.anthropic_models:
|
||||
chunk = next(self.completion_stream)
|
||||
completion_obj["content"] = self.handle_anthropic_chunk(chunk)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue