mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
Merge c504ed59c2 into f285229b51
This commit is contained in:
commit
eb5bb26649
2 changed files with 19 additions and 1 deletions
|
|
@ -2606,7 +2606,7 @@ class LiteLLMCompletionResponsesConfig:
|
|||
if text
|
||||
],
|
||||
encrypted_content=encrypted_content,
|
||||
)
|
||||
).model_copy(update={"summary": []})
|
||||
]
|
||||
return []
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue