diff --git a/.changeset/five-flies-breathe.md b/.changeset/five-flies-breathe.md new file mode 100644 index 0000000000..aa13a9b71f --- /dev/null +++ b/.changeset/five-flies-breathe.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Add support for qwen vl models diff --git a/src/shared/api.ts b/src/shared/api.ts index 4794327437..0494f2df1f 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -456,80 +456,80 @@ export const qwenModels = { contextWindow: 131_072, supportsImages: false, supportsPromptCache: false, - inputPrice: 0.0035, - outputPrice: 0.007, - cacheWritesPrice: 0.0035, - cacheReadsPrice: 0.007, + inputPrice: 3.5, + outputPrice: 7, + cacheWritesPrice: 3.5, + cacheReadsPrice: 7, }, "qwen-plus-latest": { maxTokens: 129_024, contextWindow: 131_072, supportsImages: false, supportsPromptCache: false, - inputPrice: 0.0008, - outputPrice: 0.002, - cacheWritesPrice: 0.0004, - cacheReadsPrice: 0.001, + inputPrice: 0.8, + outputPrice: 2, + cacheWritesPrice: 0.8, + cacheReadsPrice: 0.2, }, "qwen-turbo-latest": { maxTokens: 1_000_000, contextWindow: 1_000_000, supportsImages: false, supportsPromptCache: false, - inputPrice: 0.0003, - outputPrice: 0.0006, - cacheWritesPrice: 0.00015, - cacheReadsPrice: 0.0003, + inputPrice: 0.8, + outputPrice: 2, + cacheWritesPrice: 0.8, + cacheReadsPrice: 2, }, "qwen-max-latest": { maxTokens: 30_720, contextWindow: 32_768, supportsImages: false, supportsPromptCache: false, - inputPrice: 0.0112, - outputPrice: 0.0448, - cacheWritesPrice: 0.0056, - cacheReadsPrice: 0.0224, + inputPrice: 2.4, + outputPrice: 9.6, + cacheWritesPrice: 2.4, + cacheReadsPrice: 9.6, }, "qwen-coder-plus": { maxTokens: 129_024, contextWindow: 131_072, supportsImages: false, supportsPromptCache: false, - inputPrice: 0.0035, - outputPrice: 0.007, - cacheWritesPrice: 0.0035, - cacheReadsPrice: 0.007, + inputPrice: 3.5, + outputPrice: 7, + cacheWritesPrice: 3.5, + cacheReadsPrice: 7, }, "qwen-plus": { maxTokens: 129_024, contextWindow: 131_072, supportsImages: false, supportsPromptCache: false, - inputPrice: 0.0008, - outputPrice: 0.002, - cacheWritesPrice: 0.0004, - cacheReadsPrice: 0.001, + inputPrice: 0.8, + outputPrice: 2, + cacheWritesPrice: 0.8, + cacheReadsPrice: 0.2, }, "qwen-turbo": { maxTokens: 1_000_000, contextWindow: 1_000_000, supportsImages: false, supportsPromptCache: false, - inputPrice: 0.0003, - outputPrice: 0.0006, - cacheWritesPrice: 0.00015, - cacheReadsPrice: 0.0003, + inputPrice: 0.3, + outputPrice: 0.6, + cacheWritesPrice: 0.3, + cacheReadsPrice: 0.6, }, "qwen-max": { maxTokens: 30_720, contextWindow: 32_768, supportsImages: false, supportsPromptCache: false, - inputPrice: 0.0112, - outputPrice: 0.0448, - cacheWritesPrice: 0.0056, - cacheReadsPrice: 0.0224, + inputPrice: 2.4, + outputPrice: 9.6, + cacheWritesPrice: 2.4, + cacheReadsPrice: 9.6, }, "deepseek-v3": { maxTokens: 8_000, @@ -551,6 +551,46 @@ export const qwenModels = { cacheWritesPrice: 0.55, cacheReadsPrice: 0.14, }, + "qwen-vl-max": { + maxTokens: 30_720, + contextWindow: 32_768, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 3, + outputPrice: 9, + cacheWritesPrice: 3, + cacheReadsPrice: 9, + }, + "qwen-vl-max-latest": { + maxTokens: 129_024, + contextWindow: 131_072, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 3, + outputPrice: 9, + cacheWritesPrice: 3, + cacheReadsPrice: 9, + }, + "qwen-vl-plus": { + maxTokens: 6_000, + contextWindow: 8_000, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 1.5, + outputPrice: 4.5, + cacheWritesPrice: 1.5, + cacheReadsPrice: 4.5, + }, + "qwen-vl-plus-latest": { + maxTokens: 129_024, + contextWindow: 131_072, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 1.5, + outputPrice: 4.5, + cacheWritesPrice: 1.5, + cacheReadsPrice: 4.5, + }, } as const satisfies Record // Mistral