mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(responses-bridge): type-safe reasoning_content assignment in merge pass
This commit is contained in:
parent
438c1850fe
commit
de95372dfb
1 changed files with 1 additions and 1 deletions
|
|
@ -630,7 +630,7 @@ class LiteLLMCompletionResponsesConfig:
|
|||
if existing:
|
||||
combined = combined + "\n" + existing
|
||||
if isinstance(msg, dict):
|
||||
msg["reasoning_content"] = combined
|
||||
cast(dict[str, Any], msg)["reasoning_content"] = combined # cast-ok: mutable reasoning carrier
|
||||
else:
|
||||
setattr(msg, "reasoning_content", combined) # noqa: B010
|
||||
pending_reasoning = [] # mutable-ok: reset accumulator
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue