Add null check before accessing choices[0].message.content in the non-streaming path. An empty choices list causes IndexError; a None message (returned by some providers on content-filtered responses with HTTP 200) causes AttributeError. |
||
|---|---|---|
| .. | ||
| chat_api.py | ||
| convert_model.py | ||
| eval_toolcall.py | ||
| serve_openai_api.py | ||
| web_demo.py | ||