yosuke-i commited on
Commit
1110387
·
verified ·
1 Parent(s): 3e85ea0

Update chatgpt_api.py

Browse files
Files changed (1) hide show
  1. chatgpt_api.py +1 -1
chatgpt_api.py CHANGED
@@ -25,7 +25,7 @@ def get_chatgpt3_response(input_text):
25
  "Authorization": f"Bearer {OPENAI_API_KEY}"
26
  }
27
  data = {
28
- "model": "gpt-4o",
29
  "messages": [{"role": "user", "content": input_text}]
30
  }
31
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=data)
 
25
  "Authorization": f"Bearer {OPENAI_API_KEY}"
26
  }
27
  data = {
28
+ "model": "gpt-3.5-turbo",
29
  "messages": [{"role": "user", "content": input_text}]
30
  }
31
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=data)