Update app.py
Browse files4o, o1, and o3 mini
app.py
CHANGED
@@ -44,72 +44,72 @@ if openai_api_key:
|
|
44 |
|
45 |
# Available models with descriptions and token limits
|
46 |
AVAILABLE_MODELS = {
|
47 |
-
"gpt-3.5-turbo": {
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
},
|
53 |
-
"gpt-3.5-turbo-16k": {
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
},
|
59 |
-
"gpt-4": {
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
},
|
65 |
-
"gpt-4-turbo": {
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
},
|
71 |
"gpt-4o": {
|
72 |
"description": "Latest GPT-4 Omni model",
|
73 |
"max_tokens": 128000,
|
74 |
"output_tokens": 1200,
|
75 |
"temperature": 0.7
|
76 |
},
|
77 |
-
"gpt-4o-mini": {
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
},
|
83 |
-
"o1-mini": {
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
},
|
89 |
"o1": {
|
90 |
"description": "OpenAI Reasoning Model - Standard",
|
91 |
"max_tokens": 200000,
|
92 |
"output_tokens": 1200,
|
93 |
"temperature": 0.7
|
94 |
},
|
95 |
-
"o1-pro": {
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
},
|
101 |
"o3-mini": {
|
102 |
"description": "OpenAI Advanced Reasoning - Mini",
|
103 |
"max_tokens": 200000,
|
104 |
"output_tokens": 1000,
|
105 |
"temperature": 0.7
|
106 |
-
},
|
107 |
-
"o3-mini-2025-01-31": {
|
108 |
-
"description": "OpenAI Advanced Reasoning - Enhanced",
|
109 |
-
"max_tokens": 200000,
|
110 |
-
"output_tokens": 1200,
|
111 |
-
"temperature": 0.7
|
112 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
}
|
114 |
|
115 |
# Function to call OpenAI API
|
|
|
44 |
|
45 |
# Available models with descriptions and token limits
|
46 |
AVAILABLE_MODELS = {
|
47 |
+
# "gpt-3.5-turbo": {
|
48 |
+
# "description": "Fast and cost-effective",
|
49 |
+
# "max_tokens": 4096,
|
50 |
+
# "output_tokens": 500,
|
51 |
+
# "temperature": 0.7
|
52 |
+
# },
|
53 |
+
# "gpt-3.5-turbo-16k": {
|
54 |
+
# "description": "Longer context window",
|
55 |
+
# "max_tokens": 16384,
|
56 |
+
# "output_tokens": 1000,
|
57 |
+
# "temperature": 0.7
|
58 |
+
# },
|
59 |
+
# "gpt-4": {
|
60 |
+
# "description": "More capable but slower",
|
61 |
+
# "max_tokens": 8192,
|
62 |
+
# "output_tokens": 800,
|
63 |
+
# "temperature": 0.7
|
64 |
+
# },
|
65 |
+
# "gpt-4-turbo": {
|
66 |
+
# "description": "Most powerful model (if available)",
|
67 |
+
# "max_tokens": 128000,
|
68 |
+
# "output_tokens": 1200,
|
69 |
+
# "temperature": 0.7
|
70 |
+
# },
|
71 |
"gpt-4o": {
|
72 |
"description": "Latest GPT-4 Omni model",
|
73 |
"max_tokens": 128000,
|
74 |
"output_tokens": 1200,
|
75 |
"temperature": 0.7
|
76 |
},
|
77 |
+
# "gpt-4o-mini": {
|
78 |
+
# "description": "Efficient version of GPT-4o",
|
79 |
+
# "max_tokens": 128000,
|
80 |
+
# "output_tokens": 1000,
|
81 |
+
# "temperature": 0.7
|
82 |
+
# },
|
83 |
+
# "o1-mini": {
|
84 |
+
# "description": "OpenAI Reasoning Model - Mini",
|
85 |
+
# "max_tokens": 180000,
|
86 |
+
# "output_tokens": 1000,
|
87 |
+
# "temperature": 0.7
|
88 |
+
# },
|
89 |
"o1": {
|
90 |
"description": "OpenAI Reasoning Model - Standard",
|
91 |
"max_tokens": 200000,
|
92 |
"output_tokens": 1200,
|
93 |
"temperature": 0.7
|
94 |
},
|
95 |
+
# "o1-pro": {
|
96 |
+
# "description": "OpenAI Reasoning Model - Professional",
|
97 |
+
# "max_tokens": 200000,
|
98 |
+
# "output_tokens": 1500,
|
99 |
+
# "temperature": 0.7
|
100 |
+
# },
|
101 |
"o3-mini": {
|
102 |
"description": "OpenAI Advanced Reasoning - Mini",
|
103 |
"max_tokens": 200000,
|
104 |
"output_tokens": 1000,
|
105 |
"temperature": 0.7
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
}
|
107 |
+
# "o3-mini-2025-01-31": {
|
108 |
+
# "description": "OpenAI Advanced Reasoning - Enhanced",
|
109 |
+
# "max_tokens": 200000,
|
110 |
+
# "output_tokens": 1200,
|
111 |
+
# "temperature": 0.7
|
112 |
+
# }
|
113 |
}
|
114 |
|
115 |
# Function to call OpenAI API
|