fix: 使用最后一条消息作为提问
This commit is contained in:
@@ -156,7 +156,7 @@ async def generate_streaming_messages(question, request, session_id, conversatio
|
|||||||
|
|
||||||
@app.post("/digital-human")
|
@app.post("/digital-human")
|
||||||
async def digital_human(body: Resquest_Body, request: Request):
|
async def digital_human(body: Resquest_Body, request: Request):
|
||||||
question = body.messages[0].content
|
question = body.messages[-1].content
|
||||||
session_id = body.session_id
|
session_id = body.session_id
|
||||||
conversation_id = ""
|
conversation_id = ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user