Skip to content

Commit

Permalink
💄 style: Add Zhipu new models (lobehub#2830)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxjeru authored Jun 12, 2024
1 parent fb97be9 commit 5be43f0
Showing 1 changed file with 36 additions and 9 deletions.
45 changes: 36 additions & 9 deletions src/config/modelProviders/zhipu.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,62 @@
import { ModelProviderCard } from '@/types/llm';

// ref https://open.bigmodel.cn/dev/howuse/model
// api https://open.bigmodel.cn/dev/api#language
const ZhiPu: ModelProviderCard = {
chatModels: [
{
description: '最新的 GLM-4 、最大支持 128k 上下文、支持 Function Call 、Retreival',
displayName: 'GLM-4',
description: '智谱当前最先进最智能的模型,指令遵从能力大幅提升18.6%,发布于20240605',
displayName: 'GLM-4-0520',
enabled: true,
functionCall: true,
id: 'glm-4-0520',
tokens: 128_000,
},
{
description: '发布于20240116的最智能版本模型,目前已被 GLM-4-0520 版本超越',
displayName: 'GLM-4',
functionCall: true,
id: 'glm-4',
tokens: 128_000,
},
{
description:
'实现了视觉语言特征的深度融合,支持视觉问答、图像字幕、视觉定位、复杂目标检测等各类多模态理解任务',
displayName: 'GLM-4 Vision',
description: '性价比最高的版本,综合性能接近GLM-4,速度快,价格实惠',
displayName: 'GLM-4-Air',
enabled: true,
functionCall: true,
id: 'glm-4-air',
tokens: 128_000,
},
{
description: 'GLM-4-Air 的高性能版本,效果不变,推理速度达到其2.6倍',
displayName: 'GLM-4-Airx',
functionCall: true,
id: 'glm-4-airx',
tokens: 128_000,
},
{
description: '适用简单任务,速度最快,价格最实惠的版本',
displayName: 'GLM-4-Flash',
id: 'glm-4-flash',
tokens: 128_000,
},
{
description: '实现了视觉语言特征的深度融合,支持视觉问答、图像字幕、视觉定位、复杂目标检测等各类图像理解任务',
displayName: 'GLM-4V',
enabled: true,
id: 'glm-4v',
tokens: 2000,
vision: true,
},
{
description: '最新的glm-3-turbo、最大支持 128k上下文、支持Function Call、Retreival',
displayName: 'GLM-3 Turbo',
enabled: true,
description: '适用于对知识量、推理能力、创造力要求较高的场景,比如广告文案、小说写作、知识类写作、代码生成等',
displayName: 'GLM-3-Turbo',
functionCall: true,
id: 'glm-3-turbo',
tokens: 128_000,
},
],
checkModel: 'glm-3-turbo',
checkModel: 'glm-4-flash',
id: 'zhipu',
name: 'ZhiPu',
};
Expand Down

0 comments on commit 5be43f0

Please sign in to comment.