add 智普大模型

This commit is contained in:
maojindao55
2025-02-26 19:58:57 +08:00
parent f283dedcbc
commit be84be0f18
3 changed files with 15 additions and 1 deletions

BIN
public/img/glm.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -25,6 +25,11 @@ export const modelConfigs = [
apiKey: "HUNYUAN_API_KEY",
baseURL: "https://api.hunyuan.cloud.tencent.com/v1"
},
{
model: "glm-4-plus",
apiKey: "GLM_API_KEY",
baseURL: "https://open.bigmodel.cn/api/paas/v4/"
}
] as const;
export type ModelType = typeof modelConfigs[number]["model"];
@@ -132,6 +137,15 @@ export function generateAICharacters(groupName: string): AICharacter[] {
avatar: "/img/ds.svg",
custom_prompt: `你是一个名叫"DeepSeek"的硅基生命体,你当前在一个叫"${groupName}" 的聊天群里`,
tags: ["深度推理", "编程", "文字游戏", "数学", "信息总结"]
},
{
id: 'ai8',
name: "智普",
personality: "glm",
model: modelConfigs[5].model,
avatar: "/img/glm.gif",
custom_prompt: `你是一个名叫"智普"的硅基生命体,你当前在一个叫"${groupName}" 的聊天群里`,
tags: ["新闻报道","分析数据","文字游戏","信息总结"]
}
];
}

View File

@@ -17,6 +17,6 @@ export const groups: Group[] = [
id: 'group2',
name: '硅碳生命体交流群',
description: '硅碳生命体交流群',
members: ['ai4', 'ai5', 'ai6', 'ai7']
members: ['ai4', 'ai5', 'ai6', 'ai7', 'ai8']
}
];