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:
@@ -32,6 +32,7 @@ POST http://localhost:8000/chat?stream=true
|
|||||||
| 0001 | 转接人工 |
|
| 0001 | 转接人工 |
|
||||||
| 0002 | 语义无法识别转接人工 |
|
| 0002 | 语义无法识别转接人工 |
|
||||||
| 0003 | 有人伤转接人工 |
|
| 0003 | 有人伤转接人工 |
|
||||||
|
| 0005 | 拍照连续识别失败转人工 |
|
||||||
| 1001 | 未准备好通话 |
|
| 1001 | 未准备好通话 |
|
||||||
| 1002 | 通话中 |
|
| 1002 | 通话中 |
|
||||||
| 2000 | 进入单车拍照 |
|
| 2000 | 进入单车拍照 |
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ STATUS_CODE_MAP = {
|
|||||||
'0001': '转接人工',
|
'0001': '转接人工',
|
||||||
'0002': '语义无法识别转接人工',
|
'0002': '语义无法识别转接人工',
|
||||||
'0003': '有人伤转接人工',
|
'0003': '有人伤转接人工',
|
||||||
|
'0005': '拍照连续识别失败转人工',
|
||||||
'1001': '未准备好通话',
|
'1001': '未准备好通话',
|
||||||
'1002': '通话中',
|
'1002': '通话中',
|
||||||
'2000': '进入单车拍照',
|
'2000': '进入单车拍照',
|
||||||
|
|||||||
Reference in New Issue
Block a user