From fb3012f778d7ecf86fe6b92d8ba90d306e333745 Mon Sep 17 00:00:00 2001 From: Donovan Sydow Date: Fri, 30 May 2025 14:23:54 -0700 Subject: [PATCH] add llama4 models, and mis/codestral models to vertex api (#3474) * add llama4 models, and mis/codestral models to vertex api * update mistral context window sizes * changeset --------- Co-authored-by: 0xtoshii <94262432+0xToshii@users.noreply.github.com> --- .changeset/angry-ghosts-bake.md | 5 +++ src/shared/api.ts | 64 ++++++++++++++++++++++++++------- 2 files changed, 57 insertions(+), 12 deletions(-) create mode 100644 .changeset/angry-ghosts-bake.md diff --git a/.changeset/angry-ghosts-bake.md b/.changeset/angry-ghosts-bake.md new file mode 100644 index 00000000..a4899f2c --- /dev/null +++ b/.changeset/angry-ghosts-bake.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +add models to vertex ai diff --git a/src/shared/api.ts b/src/shared/api.ts index 7b2de2b7..fb8a54b6 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -465,6 +465,46 @@ export const vertexModels = { cacheWritesPrice: 0.3, cacheReadsPrice: 0.03, }, + "mistral-large-2411": { + maxTokens: 128_000, + contextWindow: 128_000, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 2.0, + outputPrice: 6.0, + }, + "mistral-small-2503": { + maxTokens: 128_000, + contextWindow: 128_000, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 0.1, + outputPrice: 0.3, + }, + "codestral-2501": { + maxTokens: 256_000, + contextWindow: 256_000, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.3, + outputPrice: 0.9, + }, + "llama-4-maverick-17b-128e-instruct-maas": { + maxTokens: 128_000, + contextWindow: 1_048_576, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 0.35, + outputPrice: 1.15, + }, + "llama-4-scout-17b-16e-instruct-maas": { + maxTokens: 1_000_000, + contextWindow: 10_485_760, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 0.25, + outputPrice: 0.7, + }, "gemini-2.0-flash-001": { maxTokens: 8192, contextWindow: 1_048_576, @@ -1460,8 +1500,8 @@ export type MistralModelId = keyof typeof mistralModels export const mistralDefaultModelId: MistralModelId = "devstral-small-2505" export const mistralModels = { "mistral-large-2411": { - maxTokens: 131_000, - contextWindow: 131_000, + maxTokens: 128_000, + contextWindow: 128_000, supportsImages: false, supportsPromptCache: false, inputPrice: 2.0, @@ -1476,24 +1516,24 @@ export const mistralModels = { outputPrice: 6.0, }, "ministral-3b-2410": { - maxTokens: 131_000, - contextWindow: 131_000, + maxTokens: 128_000, + contextWindow: 128_000, supportsImages: false, supportsPromptCache: false, inputPrice: 0.04, outputPrice: 0.04, }, "ministral-8b-2410": { - maxTokens: 131_000, - contextWindow: 131_000, + maxTokens: 128_000, + contextWindow: 128_000, supportsImages: false, supportsPromptCache: false, inputPrice: 0.1, outputPrice: 0.1, }, "mistral-small-latest": { - maxTokens: 131_000, - contextWindow: 131_000, + maxTokens: 128_000, + contextWindow: 128_000, supportsImages: true, supportsPromptCache: false, inputPrice: 0.1, @@ -1516,16 +1556,16 @@ export const mistralModels = { outputPrice: 0.3, }, "pixtral-12b-2409": { - maxTokens: 131_000, - contextWindow: 131_000, + maxTokens: 128_000, + contextWindow: 128_000, supportsImages: true, supportsPromptCache: false, inputPrice: 0.15, outputPrice: 0.15, }, "open-mistral-nemo-2407": { - maxTokens: 131_000, - contextWindow: 131_000, + maxTokens: 128_000, + contextWindow: 128_000, supportsImages: false, supportsPromptCache: false, inputPrice: 0.15,