Skip to content

Commit

Permalink
♻️ refactor: refactor Minimax with LobeOpenAICompatibleFactory (#5325)
Browse files Browse the repository at this point in the history
* ♻️ refactor: refactor Minimax with LobeOpenAICompatibleFactory

* 💄 style: add vision tag for `abab6.5s-chat` & `abab7-chat-preview`

* 🐛 fix: fix Minimax output long content interrupted by default `max_tokens` (256tokens)

* 💄 style: update aiModels list

* 🐛 fix: fix price typo

* 💄 style: add releaseAt tag
  • Loading branch information
hezhijie0327 authored Jan 15, 2025
1 parent 0f57f1e commit da11b55
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 575 deletions.
26 changes: 0 additions & 26 deletions src/app/(backend)/webapi/chat/minimax/route.test.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/app/(backend)/webapi/chat/minimax/route.ts

This file was deleted.

50 changes: 50 additions & 0 deletions src/config/aiModels/minimax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,38 @@ const minimaxChatModels: AIChatModelCard[] = [
{
abilities: {
functionCall: true,
vision: true,
},
contextWindowTokens: 245_760,
description: '相对于abab6.5系列模型在长文、数学、写作等能力有大幅度提升。',
displayName: 'abab7-chat-preview',
enabled: true,
id: 'abab7-chat-preview',
maxOutput: 245_760,
pricing: {
currency: 'CNY',
input: 10,
output: 10,
},
releasedAt: '2024-11-06',
type: 'chat',
},
{
abilities: {
functionCall: true,
vision: true,
},
contextWindowTokens: 245_760,
description: '适用于广泛的自然语言处理任务,包括文本生成、对话系统等。',
displayName: 'abab6.5s',
enabled: true,
id: 'abab6.5s-chat',
maxOutput: 245_760,
pricing: {
currency: 'CNY',
input: 1,
output: 1,
},
type: 'chat',
},
{
Expand All @@ -21,6 +47,12 @@ const minimaxChatModels: AIChatModelCard[] = [
displayName: 'abab6.5g',
enabled: true,
id: 'abab6.5g-chat',
maxOutput: 8192,
pricing: {
currency: 'CNY',
input: 5,
output: 5,
},
type: 'chat',
},
{
Expand All @@ -32,20 +64,38 @@ const minimaxChatModels: AIChatModelCard[] = [
displayName: 'abab6.5t',
enabled: true,
id: 'abab6.5t-chat',
maxOutput: 8192,
pricing: {
currency: 'CNY',
input: 5,
output: 5,
},
type: 'chat',
},
{
contextWindowTokens: 16_384,
description: '面向生产力场景,支持复杂任务处理和高效文本生成,适用于专业领域应用。',
displayName: 'abab5.5',
id: 'abab5.5-chat',
maxOutput: 16_384,
pricing: {
currency: 'CNY',
input: 5,
output: 5,
},
type: 'chat',
},
{
contextWindowTokens: 8192,
description: '专为中文人设对话场景设计,提供高质量的中文对话生成能力,适用于多种应用场景。',
displayName: 'abab5.5s',
id: 'abab5.5s-chat',
maxOutput: 8192,
pricing: {
currency: 'CNY',
input: 15,
output: 15,
},
type: 'chat',
},
];
Expand Down
Loading

0 comments on commit da11b55

Please sign in to comment.