chore: finalize backend feature scope
This commit is contained in:
+13
-2
@@ -118,10 +118,20 @@ curl "http://8.160.178.88/fastapi/api/v1/auth/me" \
|
||||
-H "X-Entry-Scene: production_vue"
|
||||
```
|
||||
|
||||
AI 学习助手流式问答:
|
||||
AI 学习助手新建会话:
|
||||
|
||||
```bash
|
||||
curl -N -X POST "http://8.160.178.88/fastapi/api/v1/learning-assistant/chat/stream" \
|
||||
curl -X POST "http://8.160.178.88/fastapi/api/v1/learning-assistant/sessions" \
|
||||
-H "Authorization: Bearer <access_token>" \
|
||||
-H "X-Entry-Scene: production_vue" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"title":"医学知识学习"}'
|
||||
```
|
||||
|
||||
AI 学习助手会话式流式问答:
|
||||
|
||||
```bash
|
||||
curl -N -X POST "http://8.160.178.88/fastapi/api/v1/learning-assistant/sessions/<assistant_session_id>/chat/stream" \
|
||||
-H "Authorization: Bearer <access_token>" \
|
||||
-H "X-Entry-Scene: production_vue" \
|
||||
-H "Content-Type: application/json" \
|
||||
@@ -131,6 +141,7 @@ curl -N -X POST "http://8.160.178.88/fastapi/api/v1/learning-assistant/chat/stre
|
||||
正常应看到:
|
||||
|
||||
```text
|
||||
event: session_ready
|
||||
event: retrieval_done
|
||||
event: answer_delta
|
||||
event: answer_done
|
||||
|
||||
Reference in New Issue
Block a user