fix(openai): Chat Message Annotations defaults to [ ] if not list or None (#32614)

This commit is contained in:
Shahrukh Shaik 2025-08-22 01:00:12 +05:30 committed by GitHub
parent b825f85bf2
commit 4ba222148d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3875,7 +3875,9 @@ def _construct_lc_result_from_responses_api(
"annotations": [
annotation.model_dump()
for annotation in content.annotations
],
]
if isinstance(content.annotations, list)
else [],
"id": output.id,
}
content_blocks.append(block)