mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Update webapp.py
This commit is contained in:
parent
9e1675d4fb
commit
08e9ea694b
1 changed files with 2 additions and 2 deletions
|
@ -694,8 +694,8 @@ def search():
|
||||||
prompt = search_query.query + "\n对以上问题生成一个Google搜索词:\n"
|
prompt = search_query.query + "\n对以上问题生成一个Google搜索词:\n"
|
||||||
if "今年" in prompt or "今天" in prompt:
|
if "今年" in prompt or "今天" in prompt:
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
prompt.replace("今年",now.strftime('%Y年'))
|
prompt = prompt.replace("今年",now.strftime('%Y年'))
|
||||||
prompt.replace("今天",now.strftime('%Y年%m月%d日'))
|
prompt = prompt.replace("今天",now.strftime('%Y年%m月%d日'))
|
||||||
gpt = ""
|
gpt = ""
|
||||||
gpt_url = "https://api.openai.com/v1/engines/text-davinci-003/completions"
|
gpt_url = "https://api.openai.com/v1/engines/text-davinci-003/completions"
|
||||||
gpt_headers = {
|
gpt_headers = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue