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:
parent
aeb0584d75
commit
c31ea985f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue