We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff4d45b commit 9c8007fCopy full SHA for 9c8007f
pydantic_ai_slim/pydantic_ai/models/openai.py
@@ -1683,7 +1683,7 @@ async def _map_messages( # noqa: C901
1683
elif isinstance(item, ThinkingPart):
1684
# we don't send back raw CoT
1685
# https://cookbook.openai.com/articles/gpt-oss/handle-raw-cot
1686
- if not item.signature and not item.provider_name and item.id and _RAW_COT_ID_SUFFIX in item.id:
+ if _RAW_COT_ID_SUFFIX in (item.id or ''):
1687
continue
1688
1689
if item.id and send_item_ids:
0 commit comments