mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
undo change to always setting role to assistant
This commit is contained in:
parent
c712cc06e3
commit
0e6460e4f0
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