🤯 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: add Grok Code Fast 1 model (#8982)
bbbuggdbcec3d07ea3
diff --git a/packages/model-runtime/src/xai/index.ts b/packages/model-runtime/src/xai/index.tsindex 4387ad6dc6c..e0e9172e9a5 100644--- a/packages/model-runtime/src/xai/index.ts+++ b/packages/model-runtime/src/xai/index.ts@@ -6,7 +6,7 @@ export interface XAIModelCard {id: string;}-export const GrokReasoningModels = new Set(['grok-3-mini', 'grok-4']);+export const GrokReasoningModels = new Set(['grok-3-mini', 'grok-4', 'grok-code']);export const isGrokReasoningModel = (model: string) =>Array.from(GrokReasoningModels).some((id) => model.includes(id));diff --git a/src/config/aiModels/xai.ts b/src/config/aiModels/xai.tsindex 498ba391ca2..a89db578020 100644--- a/src/config/aiModels/xai.ts+++ b/src/config/aiModels/xai.ts@@ -2,6 +2,31 @@ import { AIChatModelCard, AIImageModelCard } from '@/types/aiModel';// https://docs.x.ai/docs/modelsconst xaiChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 256_000,+ description:+ '我们很高兴推出 grok-code-fast-1,这是一款快速且经济高效的推理模型,在代理编码方面表现出色。',+ displayName: 'Grok Code Fast 1',+ enabled: true,+ id: 'grok-code-fast-1',+ pricing: {+ units: [+ { name: 'textInput_cacheRead', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2025-08-28',+ // settings: {+ // reasoning_effort is not supported by grok-code. Specifying reasoning_effort parameter will get an error response.+ // extendParams: ['reasoningEffort'],+ // },+ type: 'chat',+ },{abilities: {functionCall: true,