Skip to content

Commit

Permalink
💄 style: Update the sorting of each provider model (lobehub#3688)
Browse files Browse the repository at this point in the history
* Update zeroone.ts

* Update zeroone.ts

* Update zhipu.ts

* Update moonshot.ts
  • Loading branch information
LovelyGuYiMeng authored Aug 30, 2024
1 parent 2cd78cf commit 2630bbc
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 43 deletions.
12 changes: 6 additions & 6 deletions src/config/modelProviders/moonshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { ModelProviderCard } from '@/types/llm';
const Moonshot: ModelProviderCard = {
chatModels: [
{
displayName: 'Moonshot V1 8K',
displayName: 'Moonshot V1 128K',
enabled: true,
functionCall: true,
id: 'moonshot-v1-8k',
tokens: 8192,
id: 'moonshot-v1-128k',
tokens: 128_000,
},
{
displayName: 'Moonshot V1 32K',
Expand All @@ -18,11 +18,11 @@ const Moonshot: ModelProviderCard = {
tokens: 32_768,
},
{
displayName: 'Moonshot V1 128K',
displayName: 'Moonshot V1 8K',
enabled: true,
functionCall: true,
id: 'moonshot-v1-128k',
tokens: 128_000,
id: 'moonshot-v1-8k',
tokens: 8192,
},
],
checkModel: 'moonshot-v1-8k',
Expand Down
59 changes: 30 additions & 29 deletions src/config/modelProviders/zeroone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,56 +11,57 @@ const ZeroOne: ModelProviderCard = {
tokens: 32_768,
},
{
description: '中型尺寸模型升级微调,能力均衡,性价比高。深度优化指令遵循能力。',
displayName: 'Yi Medium',
description:
'在 yi-large 模型的基础上支持并强化了工具调用的能力,适用于各种需要搭建 agent 或 workflow 的业务场景。',
displayName: 'Yi Large FC',
enabled: true,
id: 'yi-medium',
functionCall: true,
id: 'yi-large-fc',
tokens: 32_768,
},
{
description:
'基于 yi-large 超强模型的高阶服务,结合检索与生成技术提供精准答案,实时全网检索信息服务。',
displayName: 'Yi Large RAG',
enabled: true,
id: 'yi-large-rag',
tokens: 16_384,
},
{
description: '复杂视觉任务模型,提供高性能图片理解、分析能力。',
displayName: 'Yi Vision',
description: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。',
displayName: 'Yi Large Turbo',
enabled: true,
id: 'yi-vision',
id: 'yi-large-turbo',
tokens: 16_384,
},
{
description: '中型尺寸模型升级微调,能力均衡,性价比高。深度优化指令遵循能力。',
displayName: 'Yi Medium',
enabled: true,
id: 'yi-medium',
tokens: 16_384,
vision: true,
},
{
description: '200K 超长上下文窗口,提供长文本深度理解和生成能力。',
displayName: 'Yi 200K',
displayName: 'Yi Medium 200K',
enabled: true,
id: 'yi-medium-200k',
tokens: 200_000,
},
{
description: '小而精悍,轻量极速模型。提供强化数学运算和代码编写能力。',
displayName: 'Yi Spark',
id: 'yi-spark',
tokens: 16_384,
},
{
description:
'基于 yi-large 超强模型的高阶服务,结合检索与生成技术提供精准答案,实时全网检索信息服务。',
displayName: 'Yi Large RAG',
enabled: true,
id: 'yi-large-rag',
id: 'yi-spark',
tokens: 16_384,
},
{
description:
'在 yi-large 模型的基础上支持并强化了工具调用的能力,适用于各种需要搭建 agent 或 workflow 的业务场景。',
displayName: 'Yi Large FC',
enabled: true,
functionCall: true,
id: 'yi-large-fc',
tokens: 32_768,
},
{
description: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。',
displayName: 'Yi Large Turbo',
description: '复杂视觉任务模型,提供高性能图片理解、分析能力。',
displayName: 'Yi Vision',
enabled: true,
id: 'yi-large-turbo',
id: 'yi-vision',
tokens: 16_384,
vision: true,
},
{
description: '初期版本,推荐使用 yi-large(新版本)',
Expand All @@ -69,7 +70,7 @@ const ZeroOne: ModelProviderCard = {
tokens: 16_384,
},
],
checkModel: 'yi-large',
checkModel: 'yi-spark',
id: 'zeroone',
name: '01.AI',
};
Expand Down
16 changes: 8 additions & 8 deletions src/config/modelProviders/zhipu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ import { ModelProviderCard } from '@/types/llm';
// ref https://open.bigmodel.cn/modelcenter/square
const ZhiPu: ModelProviderCard = {
chatModels: [
{
description: '超长输入:专为处理超长文本和记忆型任务设计',
displayName: 'GLM-4-Long',
enabled: true,
functionCall: true,
id: 'glm-4-long',
tokens: 1_024_000,
},
{
description:
'GLM-4-AllTools 是专门为支持智能体和相关任务而进一步优化的模型版本。它能够自主理解用户的意图,规划复杂的指令,并能够调用一个或多个工具(例如网络浏览器、代码解释器和文本生图像)以完成复杂的任务。',
Expand Down Expand Up @@ -60,6 +52,14 @@ const ZhiPu: ModelProviderCard = {
id: 'glm-4-airx',
tokens: 8192,
},
{
description: '超长输入:专为处理超长文本和记忆型任务设计',
displayName: 'GLM-4-Long',
enabled: true,
functionCall: true,
id: 'glm-4-long',
tokens: 1_024_000,
},
{
description: '适用简单任务,速度最快,价格最实惠的版本',
displayName: 'GLM-4-Flash',
Expand Down

0 comments on commit 2630bbc

Please sign in to comment.