Add new state code for photo recognition failure in chat stream mode

- Updated documentation and API endpoint to include a new state code '0005' for handling cases where photo recognition fails consecutively, directing to human assistance.
- Ensured consistency between documentation and code for improved clarity in state management.
This commit is contained in:
Eric Wang
2026-07-23 23:34:13 +08:00
parent 5706c112e5
commit 6f91f45065
2 changed files with 2 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ POST http://localhost:8000/chat?stream=true
| 0001 | 转接人工 |
| 0002 | 语义无法识别转接人工 |
| 0003 | 有人伤转接人工 |
| 0005 | 拍照连续识别失败转人工 |
| 1001 | 未准备好通话 |
| 1002 | 通话中 |
| 2000 | 进入单车拍照 |

View File

@@ -21,6 +21,7 @@ STATUS_CODE_MAP = {
'0001': '转接人工',
'0002': '语义无法识别转接人工',
'0003': '有人伤转接人工',
'0005': '拍照连续识别失败转人工',
'1001': '未准备好通话',
'1002': '通话中',
'2000': '进入单车拍照',