mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
fix(streaming): add type ignore for finish_reason assignment in CustomStreamWrapper
This commit is contained in:
parent
4054c359ad
commit
b4fbb63577
1 changed files with 1 additions and 1 deletions
|
|
@ -1151,7 +1151,7 @@ class CustomStreamWrapper:
|
|||
# Strip finish_reason from the content chunk so it appears
|
||||
# only on the trailing empty-delta chunk (OpenAI spec).
|
||||
# finish_reason_handler() will emit the proper terminal chunk.
|
||||
chunk.choices[0].finish_reason = None
|
||||
chunk.choices[0].finish_reason = None # type: ignore[assignment]
|
||||
return chunk
|
||||
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue