提示词添加车辆预先提取和手机号多次拼接输入

This commit is contained in:
Xin Wang
2026-02-03 17:33:45 +08:00
parent 34848dd6a0
commit 87e616ab55
7 changed files with 4779 additions and 1 deletions

View File

@@ -1,6 +1,18 @@
#!/usr/bin/env python3
"""
Simple CLI script to interact with /chat endpoint in stream mode.
Stream Chat CLI - 与 /chat 端点进行流式交互的脚本。
用法:
python stream_chat.py <session_id> <消息>
示例:
python stream_chat.py test-001 "发生了交通事故"
输出说明:
- [stage_code]: 阶段状态码,如 {"nextStageCode": "0000", "nextStage": "结束通话"}
- [text_delta]: 流式文本片段
- [done]: 流式结束
- [error]: 错误信息
"""
import asyncio