Update webapp.py

This commit is contained in:
Joseph Cheung 2023-02-19 20:50:16 +08:00
parent cadd979978
commit c1ebd034a1

View file

@ -733,7 +733,7 @@ def search():
"stream": False "stream": False
} }
gpt_response = requests.post(url, headers=gpt_headers, data=json.dumps(gpt_data)) gpt_response = requests.post(gpt_url, headers=gpt_headers, data=json.dumps(gpt_data))
gpt_json = gpt_response.json() gpt_json = gpt_response.json()
if 'choices' in gpt_json: if 'choices' in gpt_json:
gpt = gpt_json['choices'][0]['text'] gpt = gpt_json['choices'][0]['text']