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