diff --git a/.changeset/gentle-glasses-flow.md b/.changeset/gentle-glasses-flow.md new file mode 100644 index 0000000000..c3d9ed997c --- /dev/null +++ b/.changeset/gentle-glasses-flow.md @@ -0,0 +1,5 @@ +--- +"claude-dev": minor +--- + +add alibaba qwen2.5 coder models diff --git a/.changeset/slimy-roses-dance.md b/.changeset/slimy-roses-dance.md new file mode 100644 index 0000000000..e88ef3ca57 --- /dev/null +++ b/.changeset/slimy-roses-dance.md @@ -0,0 +1,5 @@ +--- +"claude-dev": minor +--- + +add alibaba qwen2.5-coder models diff --git a/src/shared/api.ts b/src/shared/api.ts index 0494f2df1f..444242433d 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -451,6 +451,66 @@ export const deepSeekModels = { export type QwenModelId = keyof typeof qwenModels export const qwenDefaultModelId: QwenModelId = "qwen-coder-plus-latest" export const qwenModels = { + "qwen2.5-coder-32b-instruct": { + maxTokens: 8_192, + contextWindow: 131_072, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.002, + outputPrice: 0.006, + cacheWritesPrice: 0.002, + cacheReadsPrice: 0.006, + }, + "qwen2.5-coder-14b-instruct": { + maxTokens: 8_192, + contextWindow: 131_072, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.002, + outputPrice: 0.006, + cacheWritesPrice: 0.002, + cacheReadsPrice: 0.006, + }, + "qwen2.5-coder-7b-instruct": { + maxTokens: 8_192, + contextWindow: 131_072, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.001, + outputPrice: 0.002, + cacheWritesPrice: 0.001, + cacheReadsPrice: 0.002, + }, + "qwen2.5-coder-3b-instruct": { + maxTokens: 8_192, + contextWindow: 32_768, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.0, + outputPrice: 0.0, + cacheWritesPrice: 0.0, + cacheReadsPrice: 0.0, + }, + "qwen2.5-coder-1.5b-instruct": { + maxTokens: 8_192, + contextWindow: 32_768, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.0, + outputPrice: 0.0, + cacheWritesPrice: 0.0, + cacheReadsPrice: 0.0, + }, + "qwen2.5-coder-0.5b-instruct": { + maxTokens: 8_192, + contextWindow: 32_768, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.0, + outputPrice: 0.0, + cacheWritesPrice: 0.0, + cacheReadsPrice: 0.0, + }, "qwen-coder-plus-latest": { maxTokens: 129_024, contextWindow: 131_072,