Skip to content

Commit 9c8007f

Browse files
committed
simplify filter
1 parent ff4d45b commit 9c8007f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/models/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,7 @@ async def _map_messages( # noqa: C901
16831683
elif isinstance(item, ThinkingPart):
16841684
# we don't send back raw CoT
16851685
# 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:
1686+
if _RAW_COT_ID_SUFFIX in (item.id or ''):
16871687
continue
16881688

16891689
if item.id and send_item_ids:

0 commit comments

Comments
 (0)