From c31ea985f3cb65f2b054b32df3ad98dff2e56e29 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 11 Feb 2026 08:05:52 -0600 Subject: [PATCH] Fix GPT-5 Responses API crash on reasoning items with None content Co-Authored-By: Claude Opus 4.6 --- backend/app/services/llm_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/services/llm_service.py b/backend/app/services/llm_service.py index 9a0504e9..75ac3739 100755 --- a/backend/app/services/llm_service.py +++ b/backend/app/services/llm_service.py @@ -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