mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-07 04:12:36 +00:00
Add missing openai models
This commit is contained in:
1 parent
16b8adc4ed
commit
90d16c35e2
2 files changed
+24
No files matched your search
@@ -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