From 850cb25067e432331919e7b3ea2a93a90ba1b632 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 f16e6e3c..dbe987a5 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