|
|
|
@ -66,7 +66,7 @@ async def h5_chat_stream(request: Request, inp: ChatIn): |
|
|
|
|
conversation_history = json.loads(conversation_history_str) if conversation_history_str else [] |
|
|
|
|
|
|
|
|
|
# 获取开启的前4个问题(包含标题和内容) |
|
|
|
|
questions = await QuickQuestion.filter(status="0", ischat="0").order_by("order_num").limit(4).values("title", "content") |
|
|
|
|
questions = await QuickQuestion.filter(status="0", ischat="0").order_by("order_num").limit(4).values("title", "subtitle","content") |
|
|
|
|
question_titles = [f"{q['title']} {q['subtitle']}" for q in questions] |
|
|
|
|
|
|
|
|
|
# 检查消息是否在问题列表中 |
|
|
|
|