danial0203 commited on
Commit
9d29b3f
·
verified ·
1 Parent(s): 457b324

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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"]