Skip to content

Commit 5b46f0b

Browse files
committed
use openrouter for qwen models
1 parent fee100d commit 5b46f0b

File tree

1 file changed

+2
-1
lines changed
  • src/puter-js/src/modules

1 file changed

+2
-1
lines changed

src/puter-js/src/modules/AI.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,9 @@ class AI{
417417
// google/
418418
// deepseek/
419419
// x-ai/
420+
// qwen/
420421
// prepend it with openrouter:
421-
if ( requestParams.model.startsWith('meta-llama/') || requestParams.model.startsWith('google/') || requestParams.model.startsWith('deepseek/') || requestParams.model.startsWith('x-ai/') ) {
422+
if ( requestParams.model.startsWith('meta-llama/') || requestParams.model.startsWith('google/') || requestParams.model.startsWith('deepseek/') || requestParams.model.startsWith('x-ai/') || requestParams.model.startsWith('qwen/') ) {
422423
requestParams.model = 'openrouter:' + requestParams.model;
423424
}
424425

0 commit comments

Comments
 (0)