Update AI.js

This commit is contained in:
jelveh
2025-04-04 14:43:53 -07:00
parent dad72c5bd7
commit 4fb772796f
+6 -2
View File
@@ -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;
}