fix(streaming): add type ignore for finish_reason assignment in CustomStreamWrapper

This commit is contained in:
Tanmay Mandal 2026-05-11 18:03:21 +05:30
parent 4054c359ad
commit b4fbb63577

View file

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