Fix GPT-5 Responses API crash on reasoning items with None content

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
michael 2026-02-11 08:05:52 -06:00
parent aeb0584d75
commit c31ea985f3

View file

@ -76,7 +76,7 @@ class LLMService:
# Try to extract from output structure
if hasattr(response, 'output') and response.output:
for item in response.output:
if hasattr(item, 'content'):
if hasattr(item, 'content') and item.content is not None:
for content in item.content:
if hasattr(content, 'text'):
result += content.text