|
@@ -32,7 +32,7 @@ def request_gpt(prompt):
|
|
|
}
|
|
|
response = requests.post(url=config_.GPT_HOST, headers=headers, json=json_data, proxies=proxies)
|
|
|
"""
|
|
|
- response = requests.post(url=config_.GPT_URL, json={'content': prompt})
|
|
|
+ response = requests.post(url=config_.GPT_URL, json={'content': prompt, 'auth': config_.GPT_OPENAI_API_KEY})
|
|
|
# print(response.json())
|
|
|
# print(response.json()['choices'][0]['message']['content'])
|
|
|
# print('\n')
|