mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(fix) streaming logprobs=None
This commit is contained in:
parent
2070a785a4
commit
ef074c707a
1 changed files with 1 additions and 0 deletions
|
@ -6705,6 +6705,7 @@ class CustomStreamWrapper:
|
||||||
text = ""
|
text = ""
|
||||||
is_finished = False
|
is_finished = False
|
||||||
finish_reason = None
|
finish_reason = None
|
||||||
|
logprobs = None
|
||||||
original_chunk = None # this is used for function/tool calling
|
original_chunk = None # this is used for function/tool calling
|
||||||
if len(str_line.choices) > 0:
|
if len(str_line.choices) > 0:
|
||||||
if str_line.choices[0].delta.content is not None:
|
if str_line.choices[0].delta.content is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue