Skip to content

Commit 16b8adc

Browse files
committed
add new GPT models
1 parent 2d7ca7f commit 16b8adc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/backend/src/modules/puterai/OpenAICompletionService.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,42 @@ class OpenAICompletionService extends BaseService {
151151
output: 440,
152152
}
153153
},
154+
{
155+
id: 'gpt-4.1',
156+
cost: {
157+
currency: 'usd-cents',
158+
tokens: 1_000_000,
159+
input: 200,
160+
output: 800,
161+
}
162+
},
163+
{
164+
id: 'gpt-4.1-mini',
165+
cost: {
166+
currency: 'usd-cents',
167+
tokens: 1_000_000,
168+
input: 40,
169+
output: 160,
170+
}
171+
},
172+
{
173+
id: 'gpt-4.1-nano',
174+
cost: {
175+
currency: 'usd-cents',
176+
tokens: 1_000_000,
177+
input: 10,
178+
output: 40,
179+
}
180+
},
181+
{
182+
id: 'gpt-4.5-preview',
183+
cost: {
184+
currency: 'usd-cents',
185+
tokens: 1_000_000,
186+
input: 7500,
187+
output: 15000,
188+
}
189+
}
154190
];
155191
}
156192

0 commit comments

Comments
 (0)