From 8df32128cae4201b890c8c8301ae6d19a944dc1c Mon Sep 17 00:00:00 2001 From: sxjeru Date: Sun, 15 Dec 2024 00:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20Add=20new=20grok=20mode?= =?UTF-8?q?ls=20(#5013)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update xai.ts * Update xai.ts * Update xai.ts --- src/config/modelProviders/xai.ts | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/config/modelProviders/xai.ts b/src/config/modelProviders/xai.ts index 4895c60e10b4..82661c0f4949 100644 --- a/src/config/modelProviders/xai.ts +++ b/src/config/modelProviders/xai.ts @@ -28,8 +28,35 @@ const XAI: ModelProviderCard = { tokens: 8192, vision: true, }, + { + description: '该模型在准确性、指令遵循和多语言能力方面有所改进。', + displayName: 'Grok 2 1212', + enabled: true, + functionCall: true, + id: 'grok-2-1212', + pricing: { + input: 2, + output: 10, + }, + releasedAt: '2024-12-12', + tokens: 131_072, + }, + { + description: '该模型在准确性、指令遵循和多语言能力方面有所改进。', + displayName: 'Grok 2 Vision 1212', + enabled: true, + functionCall: true, + id: 'grok-2-vision-1212', + pricing: { + input: 2, + output: 10, + }, + releasedAt: '2024-12-12', + tokens: 32_768, + vision: true, + }, ], - checkModel: 'grok-beta', + checkModel: 'grok-2-1212', description: 'xAI 是一家致力于构建人工智能以加速人类科学发现的公司。我们的使命是推动我们对宇宙的共同理解。', id: 'xai',