From 2823e6c84580c61324fa922f91cecc5f4718f2ed Mon Sep 17 00:00:00 2001 From: Dennis Bartlett Date: Wed, 9 Apr 2025 17:32:35 -0700 Subject: [PATCH] Update list of models and set new defualt for xAI (#2777) --- src/shared/api.ts | 56 +++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/shared/api.ts b/src/shared/api.ts index f9e97ea9..d8afa0d8 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -1319,35 +1319,8 @@ export const askSageModels = { // X AI // https://docs.x.ai/docs/api-reference export type XAIModelId = keyof typeof xaiModels -export const xaiDefaultModelId: XAIModelId = "grok-2-latest" +export const xaiDefaultModelId: XAIModelId = "grok-3-beta" export const xaiModels = { - "grok-2-latest": { - maxTokens: 8192, - contextWindow: 131072, - supportsImages: false, - supportsPromptCache: false, - inputPrice: 2.0, - outputPrice: 10.0, - description: "X AI's Grok-2 model - latest version with 131K context window", - }, - "grok-2": { - maxTokens: 8192, - contextWindow: 131072, - supportsImages: false, - supportsPromptCache: false, - inputPrice: 2.0, - outputPrice: 10.0, - description: "X AI's Grok-2 model with 131K context window", - }, - "grok-2-1212": { - maxTokens: 8192, - contextWindow: 131072, - supportsImages: false, - supportsPromptCache: false, - inputPrice: 2.0, - outputPrice: 10.0, - description: "X AI's Grok-2 model (version 1212) with 131K context window", - }, "grok-3-beta": { maxTokens: 8192, contextWindow: 131072, @@ -1384,6 +1357,33 @@ export const xaiModels = { outputPrice: 4.0, description: "X AI's Grok-3 mini fast beta model with 131K context window", }, + "grok-2-latest": { + maxTokens: 8192, + contextWindow: 131072, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 2.0, + outputPrice: 10.0, + description: "X AI's Grok-2 model - latest version with 131K context window", + }, + "grok-2": { + maxTokens: 8192, + contextWindow: 131072, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 2.0, + outputPrice: 10.0, + description: "X AI's Grok-2 model with 131K context window", + }, + "grok-2-1212": { + maxTokens: 8192, + contextWindow: 131072, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 2.0, + outputPrice: 10.0, + description: "X AI's Grok-2 model (version 1212) with 131K context window", + }, "grok-2-vision-latest": { maxTokens: 8192, contextWindow: 32768,