🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style: Enhanced AkashChat experience (#9330)
sxjeru47ec2d81dc39
diff --git a/packages/model-bank/src/aiModels/akashchat.ts b/packages/model-bank/src/aiModels/akashchat.tsindex 55c3afad980..ca075ee6f8a 100644--- a/packages/model-bank/src/aiModels/akashchat.ts+++ b/packages/model-bank/src/aiModels/akashchat.ts@@ -12,16 +12,9 @@ const akashChatModels: AIChatModelCard[] = [displayName: 'DeepSeek V3.1',enabled: true,id: 'DeepSeek-V3-1',- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,+ settings: {+ extendParams: ['enableReasoning'],},- contextWindowTokens: 65_536,- displayName: 'DeepSeek R1 Distill Qwen 32B',- id: 'DeepSeek-R1-Distill-Qwen-32B',type: 'chat',},{@@ -34,12 +27,12 @@ const akashChatModels: AIChatModelCard[] = [displayName: 'GPT-OSS-120B',enabled: true,id: 'gpt-oss-120b',+ settings: {+ extendParams: ['reasoningEffort'],+ },type: 'chat',},{- abilities: {- functionCall: true,- },contextWindowTokens: 262_144,description:'Qwen3 235B A22B Instruct 2507:面向高级推理与对话指令优化的模型,混合专家架构以在大规模参数下保持推理效率。',@@ -49,7 +42,15 @@ const akashChatModels: AIChatModelCard[] = [},{abilities: {- functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 65_536,+ displayName: 'DeepSeek R1 Distill Qwen 32B',+ id: 'DeepSeek-R1-Distill-Qwen-32B',+ type: 'chat',+ },+ {+ abilities: {vision: true,},contextWindowTokens: 131_072,diff --git a/packages/model-bank/src/aiModels/mistral.ts b/packages/model-bank/src/aiModels/mistral.tsindex d6a65152b48..f08eed6f8e8 100644--- a/packages/model-bank/src/aiModels/mistral.ts+++ b/packages/model-bank/src/aiModels/mistral.ts@@ -1,7 +1,7 @@import { AIChatModelCard } from '../types/aiModel';// https://docs.mistral.ai/getting-started/models/models_overview/-// https://mistral.ai/products/la-plateforme#pricing+// https://mistral.ai/pricing#api-pricingconst mistralChatModels: AIChatModelCard[] = [{@@ -10,7 +10,7 @@ const mistralChatModels: AIChatModelCard[] = [},contextWindowTokens: 128_000,description: 'Mistral Medium 3 以 8 倍的成本提供最先进的性能,并从根本上简化了企业部署。',- displayName: 'Mistral Medium 3',+ displayName: 'Mistral Medium 3.1',enabled: true,id: 'mistral-medium-latest',pricing: {@@ -21,6 +21,41 @@ const mistralChatModels: AIChatModelCard[] = [},type: 'chat',},+ {+ abilities: {+ reasoning: true,+ vision: true,+ },+ contextWindowTokens: 128_000,+ description: 'Magistral Medium 1.2 是Mistral AI于2025年9月发布的前沿级推理模型,具有视觉支持。',+ displayName: 'Magistral Medium 1.2',+ enabled: true,+ id: 'magistral-medium-latest',+ pricing: {+ units: [+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ type: 'chat',+ },+ {+ abilities: {+ reasoning: true,+ vision: true,+ },+ contextWindowTokens: 128_000,+ description: 'Magistral Small 1.2 是Mistral AI于2025年9月发布的开源小型推理模型,具有视觉支持。',+ displayName: 'Magistral Small 1.2',+ id: 'magistral-small-2509',+ pricing: {+ units: [+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ type: 'chat',+ },{abilities: {functionCall: true,@@ -46,7 +81,6 @@ const mistralChatModels: AIChatModelCard[] = [contextWindowTokens: 128_000,description: 'Mistral Small是成本效益高、快速且可靠的选项,适用于翻译、摘要和情感分析等用例。',displayName: 'Mistral Small 3.2',- enabled: true,id: 'mistral-small-latest',pricing: {units: [@@ -65,7 +99,6 @@ const mistralChatModels: AIChatModelCard[] = [description:'Mistral Large是旗舰大模型,擅长多语言任务、复杂推理和代码生成,是高端应用的理想选择。',displayName: 'Mistral Large 2.1',- enabled: true,id: 'mistral-large-latest',pricing: {units: [@@ -75,23 +108,6 @@ const mistralChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- reasoning: true,- },- contextWindowTokens: 128_000,- description: 'Magistral Medium 1.1 是 Mistral AI 于2025年7月发布的前沿级推理模型。',- displayName: 'Magistral Medium 1.1',- enabled: true,- id: 'magistral-medium-latest',- pricing: {- units: [- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -119,7 +135,6 @@ const mistralChatModels: AIChatModelCard[] = [description:'Pixtral Large 是一款拥有 1240 亿参数的开源多模态模型,基于 Mistral Large 2 构建。这是我们多模态家族中的第二款模型,展现了前沿水平的图像理解能力。',displayName: 'Pixtral Large',- enabled: true,id: 'pixtral-large-latest',pricing: {units: [diff --git a/packages/model-runtime/src/providers/akashchat/index.ts b/packages/model-runtime/src/providers/akashchat/index.tsindex 1dd0ab5bcf2..f8cbb8441fc 100644--- a/packages/model-runtime/src/providers/akashchat/index.ts+++ b/packages/model-runtime/src/providers/akashchat/index.ts@@ -2,6 +2,10 @@ import { createOpenAICompatibleRuntime } from '../../core/openaiCompatibleFactorimport { ModelProvider } from '../../types';import { processMultiProviderModelList } from '../../utils/modelParse';+const THINKING_MODELS = [+ 'DeepSeek-V3-1',+];+export interface AkashChatModelCard {id: string;}@@ -10,12 +14,22 @@ export const LobeAkashChatAI = createOpenAICompatibleRuntime({baseURL: 'https://chatapi.akash.network/api/v1',chatCompletion: {handlePayload: (payload) => {- const { model, ...rest } = payload;+ const { model, thinking, ...rest } = payload;++ const thinkingFlag =+ thinking?.type === 'enabled' ? true : thinking?.type === 'disabled' ? false : undefined;return {...rest,+ allowed_openai_params: ['reasoning_effort'],+ cache: { 'no-cache': true },model,stream: true,+ ...(THINKING_MODELS.some((keyword) => model.includes(keyword))+ ? {+ chat_template_kwargs: { thinking: thinkingFlag },+ }+ : {}),} as any;},},