Update chatgpt_api.py
Browse files- 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-
|
| 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)
|