forked from phoenix/litellm-mirror
(fix) assert streaming response = streamchoices()
This commit is contained in:
parent
01d5875426
commit
0dd1111cea
1 changed files with 1 additions and 0 deletions
|
@ -5463,6 +5463,7 @@ class CustomStreamWrapper:
|
||||||
|
|
||||||
def chunk_creator(self, chunk):
|
def chunk_creator(self, chunk):
|
||||||
model_response = ModelResponse(stream=True, model=self.model)
|
model_response = ModelResponse(stream=True, model=self.model)
|
||||||
|
model_response.choices = [StreamingChoices()]
|
||||||
model_response.choices[0].finish_reason = None
|
model_response.choices[0].finish_reason = None
|
||||||
response_obj = {}
|
response_obj = {}
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue