dlimeng commited on
Commit
c8eb632
·
1 Parent(s): b4d90ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -47,7 +47,8 @@ def gpt_inference(base_url, model, openai_key, prompt):
47
  }
48
 
49
  response = requests.post(f"{base_url}/v1/chat/completions", headers=headers, data=json.dumps(data))
50
-
 
51
  code = response.json()["choices"][0]["message"]["content"]
52
  print(f"code:{code}")
53
  img = execute_code(code)
 
47
  }
48
 
49
  response = requests.post(f"{base_url}/v1/chat/completions", headers=headers, data=json.dumps(data))
50
+ print("Status code:", response.status_code)
51
+ print("Response JSON:", response.json())
52
  code = response.json()["choices"][0]["message"]["content"]
53
  print(f"code:{code}")
54
  img = execute_code(code)