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
1101fd1c59
commit
0bd423fc27
1 changed files with 2 additions and 2 deletions
|
@ -694,8 +694,8 @@ def search():
|
|||
prompt = search_query.query + "\n对以上问题生成一个Google搜索词:\n"
|
||||
if "今年" in prompt or "今天" in prompt:
|
||||
now = datetime.datetime.now()
|
||||
prompt = prompt.replace("今年",now.strftime('%Y年'))
|
||||
prompt = prompt.replace("今天",now.strftime('%Y年%m月%d日'))
|
||||
prompt = prompt.replace("今年",now.strftime('%Y年'))
|
||||
prompt = prompt.replace("今天",now.strftime('%Y年%m月%d日'))
|
||||
gpt = ""
|
||||
gpt_url = "https://api.openai.com/v1/engines/text-davinci-003/completions"
|
||||
gpt_headers = {
|
||||
|
|
Loading…
Add table
Reference in a new issue