undo change to always setting role to assistant

This commit is contained in:
ishaan-jaff 2023-09-15 15:16:58 -07:00
parent 437c2b2316
commit b966baa1f0
2 changed files with 2 additions and 2 deletions

View file

@ -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)