yosuke-i commited on
Commit
b3bec9f
·
verified ·
1 Parent(s): b7e417e

Update chatgpt_api.py

Browse files
Files changed (1) hide show
  1. chatgpt_api.py +1 -1
chatgpt_api.py CHANGED
@@ -10,7 +10,7 @@ def get_chatgpt_response(input_text):
10
  "Authorization": f"Bearer {OPENAI_API_KEY}"
11
  }
12
  data = {
13
- "model": "gpt-4",
14
  "messages": [{"role": "user", "content": input_text}]
15
  }
16
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=data)
 
10
  "Authorization": f"Bearer {OPENAI_API_KEY}"
11
  }
12
  data = {
13
+ "model": "gpt-4o",
14
  "messages": [{"role": "user", "content": input_text}]
15
  }
16
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=data)