Skip to content

Commit

Permalink
🔨 fix: add qwen api models patch in ollama (lobehub#1630)
Browse files Browse the repository at this point in the history
* ✨ feat: Temporary qwen model name patch

* 🐛 fix: additional enter
  • Loading branch information
MapleEve authored Mar 30, 2024
1 parent 5ad9d18 commit a1e754c
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions src/config/modelProviders/ollama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,55 @@ const Ollama: ModelProviderCard = {
tokens: 4000,
vision: true,
},
// TODO: 在单独支持千问之后这些 Qwen 模型需要移动到千问的配置中
{
displayName: 'Qwen Plus',
functionCall: true,
hidden: true,
id: 'qwen-plus',
tokens: 30_000,
vision: false,
},
{
displayName: 'Qwen Turbo',
functionCall: true,
hidden: true,
id: 'qwen-turbo',
tokens: 6000,
vision: false,
},
{
displayName: 'Qwen Max',
functionCall: true,
hidden: true,
id: 'qwen-max',
tokens: 6000,
vision: false,
},
{
displayName: 'Qwen Max Long',
functionCall: true,
hidden: true,
id: 'qwen-max-longcontext',
tokens: 28_000,
vision: false,
},
{
displayName: 'Qwen VL Max',
functionCall: false,
hidden: true,
id: 'qwen-vl-max',
tokens: 6000,
vision: true,
},
{
displayName: 'Qwen VL Plus',
functionCall: false,
hidden: true,
id: 'qwen-vl-plus',
tokens: 30_000,
vision: true,
},
],
id: 'ollama',
};
Expand Down

0 comments on commit a1e754c

Please sign in to comment.