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,