Skip to content

Commit

Permalink
💄 style: Update openrouter model list (#5919)
Browse files Browse the repository at this point in the history
  • Loading branch information
opoet authored Feb 9, 2025
1 parent a53af9f commit 8a185d3
Show file tree
Hide file tree
Showing 2 changed files with 149 additions and 0 deletions.
83 changes: 83 additions & 0 deletions src/config/aiModels/openrouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,26 @@ const openrouterChatModels: AIChatModelCard[] = [
releasedAt: '2024-03-07',
type: 'chat',
},
{
abilities: {
functionCall: true,
},
contextWindowTokens: 200_000,
description:
'Claude 3.5 Haiku 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.5 Haiku 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
displayName: 'Claude 3.5 Haiku',
enabled: true,
id: 'anthropic/claude-3.5-haiku',
maxOutput: 8192,
#: {
cachedInput: 0.1,
input: 1,
output: 5,
writeCacheInput: 1.25,
},
releasedAt: '2024-11-05',
type: 'chat',
},
{
abilities: {
functionCall: true,
Expand Down Expand Up @@ -155,6 +175,26 @@ const openrouterChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
{
abilities: {
functionCall: true,
vision: true,
},
contextWindowTokens: 1_048_576 + 8192,
description:
'Gemini 2.0 Flash 提供下一代功能和改进,包括卓越的速度、原生工具使用、多模态生成和1M令牌上下文窗口。',
displayName: 'Gemini 2.0 Flash',
enabled: true,
id: 'google/gemini-2.0-flash-001',
maxOutput: 8192,
#: {
cachedInput: 0.025,
input: 0.1,
output: 0.4,
},
releasedAt: '2025-02-05',
type: 'chat',
},
{
abilities: {
functionCall: true,
Expand Down Expand Up @@ -221,6 +261,34 @@ const openrouterChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
{
abilities: {
functionCall: true,
},
contextWindowTokens: 32_768,
description:
'Llama 3.3 是 Llama 系列最先进的多语言开源大型语言模型,以极低成本体验媲美 405B 模型的性能。基于 Transformer 结构,并通过监督微调(SFT)和人类反馈强化学习(RLHF)提升有用性和安全性。其指令调优版本专为多语言对话优化,在多项行业基准上表现优于众多开源和封闭聊天模型。知识截止日期为 2023 年 12 月',
displayName: 'Llama 3.3 70B Instruct',
enabled: true,
id: 'meta-llama/llama-3.3-70b-instruct',
#: {
input: 0.12,
output: 0.3,
},
type: 'chat',
},
{
abilities: {
functionCall: true,
},
contextWindowTokens: 32_768,
description:
'Llama 3.3 是 Llama 系列最先进的多语言开源大型语言模型,以极低成本体验媲美 405B 模型的性能。基于 Transformer 结构,并通过监督微调(SFT)和人类反馈强化学习(RLHF)提升有用性和安全性。其指令调优版本专为多语言对话优化,在多项行业基准上表现优于众多开源和封闭聊天模型。知识截止日期为 2023 年 12 月',
displayName: 'Llama 3.3 70B Instruct (Free)',
enabled: true,
id: 'meta-llama/llama-3.3-70b-instruct:free',
type: 'chat',
},
{
contextWindowTokens: 32_768,
description: 'Qwen2 是全新的大型语言模型系列,具有更强的理解和生成能力。',
Expand All @@ -245,6 +313,21 @@ const openrouterChatModels: AIChatModelCard[] = [
id: 'google/gemma-2-9b-it:free',
type: 'chat',
},
{
abilities: {
functionCall: true,
vision: true,
},
contextWindowTokens: 2_097_152 + 8192,
description:
'Gemini 2.0 Pro Experimental 是 Google 最新的实验性多模态AI模型,与历史版本相比有一定的质量提升,特别是对于世界知识、代码和长上下文。',
displayName: 'Gemini 2.0 Pro Experimental 02-05 (Free)',
enabled: true,
id: 'google/gemini-2.0-pro-exp-02-05:free',
maxOutput: 8192,
releasedAt: '2025-02-05',
type: 'chat',
},
];

export const allModels = [...openrouterChatModels];
Expand Down
66 changes: 66 additions & 0 deletions src/config/modelProviders/openrouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,23 @@ const OpenRouter: ModelProviderCard = {
releasedAt: '2024-03-07',
vision: true,
},
{
contextWindowTokens: 200_000,
description:
'Claude 3.5 Haiku 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.5 Haiku 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
displayName: 'Claude 3.5 Haiku',
enabled: true,
functionCall: true,
id: 'anthropic/claude-3.5-haiku',
maxOutput: 8192,
#: {
cachedInput: 0.1,
input: 1,
output: 5,
writeCacheInput: 1.25,
},
releasedAt: '2024-11-05',
},
{
contextWindowTokens: 200_000,
description:
Expand Down Expand Up @@ -153,6 +170,22 @@ const OpenRouter: ModelProviderCard = {
},
vision: true,
},
{
contextWindowTokens: 1_048_576 + 8192,
description: "Gemini 2.0 Flash 提供下一代功能和改进,包括卓越的速度、原生工具使用、多模态生成和1M令牌上下文窗口。",
displayName: "Gemini 2.0 Flash",
enabled: true,
functionCall: true,
id: "google/gemini-2.0-flash-001",
maxOutput: 8192,
#: {
cachedInput: 0.025,
input: 0.1,
output: 0.4
},
releasedAt: "2025-02-05",
vision: true
},
{
contextWindowTokens: 2_000_000 + 8192,
description: 'Gemini 1.5 Pro 结合最新优化技术,带来更高效的多模态数据处理能力。',
Expand Down Expand Up @@ -207,6 +240,28 @@ const OpenRouter: ModelProviderCard = {
},
vision: true,
},
{
contextWindowTokens: 32_768,
description:
'Llama 3.3 是 Llama 系列最先进的多语言开源大型语言模型,以极低成本体验媲美 405B 模型的性能。基于 Transformer 结构,并通过监督微调(SFT)和人类反馈强化学习(RLHF)提升有用性和安全性。其指令调优版本专为多语言对话优化,在多项行业基准上表现优于众多开源和封闭聊天模型。知识截止日期为 2023 年 12 月',
displayName: 'Llama 3.3 70B Instruct',
enabled: true,
functionCall: true,
id: 'meta-llama/llama-3.3-70b-instruct',
#: {
input: 0.12,
output: 0.3,
},
},
{
contextWindowTokens: 32_768,
description:
'Llama 3.3 是 Llama 系列最先进的多语言开源大型语言模型,以极低成本体验媲美 405B 模型的性能。基于 Transformer 结构,并通过监督微调(SFT)和人类反馈强化学习(RLHF)提升有用性和安全性。其指令调优版本专为多语言对话优化,在多项行业基准上表现优于众多开源和封闭聊天模型。知识截止日期为 2023 年 12 月',
displayName: 'Llama 3.3 70B Instruct (Free)',
enabled: true,
functionCall: true,
id: 'meta-llama/llama-3.3-70b-instruct:free',
},
{
contextWindowTokens: 32_768,
description: 'Qwen2 是全新的大型语言模型系列,具有更强的理解和生成能力。',
Expand All @@ -228,6 +283,17 @@ const OpenRouter: ModelProviderCard = {
enabled: true,
id: 'google/gemma-2-9b-it:free',
},
{
contextWindowTokens: 2_097_152 + 8192,
description: "Gemini 2.0 Pro Experimental 是 Google 最新的实验性多模态AI模型,与历史版本相比有一定的质量提升,特别是对于世界知识、代码和长上下文。",
displayName: "Gemini 2.0 Pro Experimental 02-05 (Free)",
enabled: true,
functionCall: true,
id: "google/gemini-2.0-pro-exp-02-05:free",
maxOutput: 8192,
releasedAt: "2025-02-05",
vision: true
},
],
checkModel: 'google/gemma-2-9b-it:free',
description:
Expand Down

0 comments on commit 8a185d3

Please # to comment.