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