perf: 优化网页搜索回答的格式

This commit is contained in:
Soulter
2023-11-14 20:34:23 +08:00
parent 4aa2eab8b6
commit b48fbf10e1
+1 -1
View File
@@ -259,7 +259,7 @@ def web_search(question, provider: Provider, session_id, official_fc=False):
if has_func:
provider.forget(session_id)
question3 = f"""请你用可爱的语气回答`{question}`问题。\n以下是相关材料,请直接拿此材料针对问题进行总结回答,再给参考链接, 参考链接首末有空格。不要提到任何函数调用的信息在总结的末尾加上1-2个相关的emoji。```\n{function_invoked_ret}\n```\n"""
question3 = f"""请你用活泼的语气回答`{question}`问题。\n以下是相关材料,请直接拿此材料针对问题进行总结回答。在引文末加上参考链接的标号,如` [1]`;在文章末尾加上各参考链接,如`[1] <标题> <网址>`不要提到任何函数调用的信息在总结的末尾加上 1-2 个相关的emoji。```\n{function_invoked_ret}\n```\n"""
gu.log(f"web_search: {question3}", tag="web_search", level=gu.LEVEL_DEBUG, max_len=99999)
_c = 0
while _c < 3: