From 8011649abcad6ce59d143f6bd6703f5fdd77df01 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sun, 1 Jun 2025 23:28:05 -0400 Subject: [PATCH] fix all the o1-o4 models modified: app.py --- app.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index c47c281..aa92a7e 100644 --- a/app.py +++ b/app.py @@ -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)