diff --git a/services/extractor/event_classifier.py b/services/extractor/event_classifier.py index 57a29b4..d240c69 100644 --- a/services/extractor/event_classifier.py +++ b/services/extractor/event_classifier.py @@ -539,7 +539,10 @@ async def classify_global_event( attempt = await ollama_client._call_ollama(prompts, json_schema) raw_output = attempt.raw_output - if attempt.error is None and raw_output: + # _call_ollama validates against the *extraction* schema, which + # doesn't match event classification output. We ignore that + # validation error and try our own parsing whenever we have output. + if raw_output: # Try to parse the response try: event = _parse_classification_response(