forked from phoenix/litellm-mirror
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)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "litellm"
|
||||
version = "0.1.643"
|
||||
version = "0.1.644"
|
||||
description = "Library to easily interface with LLM API providers"
|
||||
authors = ["BerriAI"]
|
||||
license = "MIT License"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue