You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: settings.py
+4-9Lines changed: 4 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@
30
30
31
31
32
32
# Translate non-chinese text to chinese
33
-
tranlsate_to_chinese=False# True or False;
33
+
translate_to_chinese=False# True or False;
34
34
# if True, the bot will send chinese translation for any non-chinese gpt response; default is False
35
35
# 如果设置为 True,必须提供下面的 dl_key,否则会报错
36
36
dl_key=None# the translation uses the DeepL api; hence an deepl api key is required;
@@ -52,18 +52,13 @@
52
52
venv_path="./venv"
53
53
54
54
55
-
PROMPT_TEMPLATE="""
56
-
Context information is below. Please refer to the context by using [number] notation when providing a response.
55
+
PROMPT_TEMPLATE="""Web search context information is provided below.
57
56
---------------------
58
57
{context_str}
59
58
---------------------
60
59
Current date: {current_date}.
61
-
Using the provided context information, write a comprehensive reply to the given query.
62
-
If the provided information refers to multiple subjects with the same name, write separate answers for each subject.
63
-
64
-
首先,不考虑提供的背景信息,请回答以下问题(用中文): {query_str}
65
-
66
-
现在,考虑到提供的背景信息,这是否改变了原始答案?如果是,请用中文提供更新后的答案。如果没有,请用中文重复原始答案(If not, please repeat the original answer in 中文 (Chinese).)。无论如何,你都要提供一个回答。
60
+
Using the provided web search context information, write a comprehensive reply to the given query.
61
+
Now, use the provided information to answer the following question: {query_str}
67
62
"""
68
63
69
64
bing_key="your_key_for_Bing_search"# get your free bing search api key here: https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/overview
0 commit comments