This commit is contained in:
Humaira Ambreen 2026-09-30 16:59:53 -04:00 • committed by GitHub
commit eb5bb26649
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 1 deletions

View file

@ -2606,7 +2606,7 @@ class LiteLLMCompletionResponsesConfig:
if text
],
encrypted_content=encrypted_content,
)
).model_copy(update={"summary": []})
]
return []

View file

@ -4939,6 +4939,24 @@ class TestBridgedOutputItemIdPrefixes:
choices=[choice],
)
def test_reasoning_item_includes_empty_summary(self):
item: Final = self._reasoning_items()[0]
assert item.model_dump(exclude_none=True) == {
"type": "reasoning",
"id": item.id,
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "thinking about fruit",
"annotations": [],
}
],
"summary": [],
}
def test_reasoning_item_id_uses_rs_prefix(self):
items = self._reasoning_items()