mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
When a tool result carries both response and result as None, `text = result.response if result.response else result.result` is None. That None was passed to tts_one_sentence/store_tts_text and written to the dialogue as an assistant message; it also made `text in streamed_text` raise TypeError when streamed_text was non-empty (None in str). Guard the whole RESPONSE/NOTFOUND/ERROR branch on `if text:` so empty/None tool replies are skipped entirely. |
||
|---|---|---|
| .. | ||
| api | ||
| handle | ||
| providers | ||
| utils | ||
| auth.py | ||
| connection.py | ||
| http_server.py | ||
| websocket_server.py | ||