Skip to content

Commit 292d411

Browse files
authored
Update settings.py
1 parent 80a9208 commit 292d411

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

settings.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
# Translate non-chinese text to chinese
33-
tranlsate_to_chinese = False # True or False;
33+
translate_to_chinese = False # True or False;
3434
# if True, the bot will send chinese translation for any non-chinese gpt response; default is False
3535
# 如果设置为 True,必须提供下面的 dl_key,否则会报错
3636
dl_key = None # the translation uses the DeepL api; hence an deepl api key is required;
@@ -52,18 +52,13 @@
5252
venv_path = "./venv"
5353

5454

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.
5756
---------------------
5857
{context_str}
5958
---------------------
6059
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}
6762
"""
6863

6964
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

Comments
 (0)