Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -90,6 +90,7 @@ Return the response in the following JSON response format:
|
|
90 |
|
91 |
try:
|
92 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
|
|
93 |
if response.status_code == 200:
|
94 |
json_response = response.json()
|
95 |
response_content = json_response["choices"][0]["message"]["content"]
|
|
|
90 |
|
91 |
try:
|
92 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
93 |
+
logging.info(f"Full API response: {response.text}")
|
94 |
if response.status_code == 200:
|
95 |
json_response = response.json()
|
96 |
response_content = json_response["choices"][0]["message"]["content"]
|