'commit'
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user