Add missing openai models

This commit is contained in:
jelveh
2025-04-14 12:36:07 -07:00
parent 16b8adc4ed
commit 90d16c35e2
2 changed files with 24 additions and 0 deletions
@@ -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: {
+6
View File
@@ -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/