mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-12 17:13:43 +08:00
feat: 支持智谱GLM-4V
This commit is contained in:
@@ -9,6 +9,8 @@ export const CHANNEL_OPTIONS = [
|
||||
{key: 17, text: '阿里通义千问', value: 17, color: 'orange', label: '阿里通义千问'},
|
||||
{key: 18, text: '讯飞星火认知', value: 18, color: 'blue', label: '讯飞星火认知'},
|
||||
{key: 16, text: '智谱 ChatGLM', value: 16, color: 'violet', label: '智谱 ChatGLM'},
|
||||
{key: 16, text: '智谱 GLM-4V', value: 26, color: 'green', label: '智谱 GLM-4V'},
|
||||
{key: 16, text: 'Moonshot', value: 25, color: 'green', label: 'Moonshot'},
|
||||
{key: 19, text: '360 智脑', value: 19, color: 'blue', label: '360 智脑'},
|
||||
{key: 23, text: '腾讯混元', value: 23, color: 'teal', label: '腾讯混元'},
|
||||
{key: 8, text: '自定义渠道', value: 8, color: 'pink', label: '自定义渠道'},
|
||||
|
||||
@@ -89,6 +89,9 @@ const EditChannel = (props) => {
|
||||
case 24:
|
||||
localModels = ['gemini-pro'];
|
||||
break;
|
||||
case 26:
|
||||
localModels = ['glm-4', 'glm-4v', 'glm-3-turbo'];
|
||||
break;
|
||||
}
|
||||
setInputs((inputs) => ({...inputs, models: localModels}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user