mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-08 08:12:15 +00:00
Add missing openai models
This commit is contained in:
@@ -142,6 +142,24 @@ class OpenAICompletionService extends BaseService {
|
||||
output: 1200,
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'o1-pro',
|
||||
cost: {
|
||||
currency: 'usd-cents',
|
||||
tokens: 1_000_000,
|
||||
input: 15000,
|
||||
output: 60000,
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'o1',
|
||||
cost: {
|
||||
currency: 'usd-cents',
|
||||
tokens: 1_000_000,
|
||||
input: 1500,
|
||||
output: 6000,
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'o3-mini',
|
||||
cost: {
|
||||
|
||||
@@ -309,6 +309,12 @@ class AI{
|
||||
requestParams.model = 'openrouter:openai/o1-mini';
|
||||
}
|
||||
|
||||
// if a model is prepended with "openai/", remove it
|
||||
if (requestParams.model && requestParams.model.startsWith('openai/')) {
|
||||
requestParams.model = requestParams.model.replace('openai/', '');
|
||||
driver = 'openai-completion';
|
||||
}
|
||||
|
||||
// if model starts with:
|
||||
// meta-llama/
|
||||
// google/
|
||||
|
||||
Reference in New Issue
Block a user