mirror of
https://github.com/LeeGaoGao/ECC.git
synced 2026-07-22 19:13:09 +00:00
The OpenAI-compatible API can return HTTP 200 with an empty choices list or choices[0].message = None (content-filtered responses on Gemini, overwhelmed Ollama instances). Without a guard, both sites raise an unhandled IndexError or AttributeError crashing the provider. Added guard in OpenAIProvider.generate() and AstraFlowProvider.generate().