fix all the o1-o4 models

modified:   app.py
This commit is contained in:
Russell Ballestrini 2025-06-01 23:28:05 -04:00
parent b65fd58285
commit 8011649abc

7
app.py
View file

@ -809,8 +809,13 @@ def chat_gpt(username, room_name, model_name="gpt-4o-mini"):
limit = 20
if "gpt-4" in model_name:
limit = 1000
if "o1" in model_name:
if "o1-" in model_name:
temperature = 1
if "o3-" in model_name:
temperature = 1
if "o4-" in model_name:
temperature = 1
with app.app_context():
room = get_room(room_name)