This commit is contained in:
2025-08-31 10:30:06 +08:00
parent 58e4e06d8a
commit fd9d498e3c
4 changed files with 25 additions and 5 deletions

View File

@@ -52,9 +52,9 @@ async def get_xueban_response_async(query_text: str, stream: bool = True):
"""
# 打开文件读取知识内容
f = open(r"D:\dsWork\dsProject\dsLightRag\static\YunXiao.txt", "r", encoding="utf-8")
zhishiConten = f.read()
zhishiConten = "选择作答的相应知识内容:" + zhishiConten + "\n"
query_text = zhishiConten + "下面是用户提的问题:" + query_text
zhishiContent = f.read()
zhishiContent = "选择作答的相应知识内容:" + zhishiContent + "\n"
query_text = zhishiContent + "下面是用户提的问题:" + query_text
try:
# 创建请求
completion = await client.chat.completions.create(