mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-10 16:03:01 +00:00
Update AI.js
This commit is contained in:
1 parent
dad72c5bd7
commit
4fb772796f
1 file changed
+6
-2
@@ -297,8 +297,12 @@ class AI{
|
||||
requestParams.model = 'openrouter:openai/o1-mini';
|
||||
}
|
||||
|
||||
// if model starts with meta-llama/, prepend it with openrouter:
|
||||
if ( requestParams.model.startsWith('meta-llama/') ) {
|
||||
// if model starts with:
|
||||
// meta-llama/
|
||||
// google/
|
||||
// deepseek/
|
||||
// prepend it with openrouter:
|
||||
if ( requestParams.model.startsWith('meta-llama/') || requestParams.model.startsWith('google/') || requestParams.model.startsWith('deepseek/') ) {
|
||||
requestParams.model = 'openrouter:' + requestParams.model;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user