`--no-stream` 在 OpenAI 兼容的端点省略 `usage` 时会发生 AttributeError 导致崩溃
作者: tao-hpu创建于 2026年9月21日更新于 2026年9月21日
A non-streaming Chat Completions response without a 'usage' key, or with 'usage': null, causes LLM to exit with a traceback. This happens with OpenAI-compatible servers configured through 'extra-OpenAI-models.yaml' or 'LLM OpenAI-endpoint', for both the sync and the async model.
内容来源: simonw/llm