From ee06c0811c6f72bdba0f48fe13a56cd995d72218 Mon Sep 17 00:00:00 2001 From: stephen8339 <55537353@qq.com> Date: Sat, 15 Feb 2025 03:10:37 +0800 Subject: [PATCH] add all qwen2.5 coder models (#1797) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add alibaba qwen-max qwen-plus qwen-turbo qwen-coder-plus stable/latest models * add alibaba qwen-max qwen-plus qwen-turbo qwen-coder-plus stable/latest models * Provide the api line choice for international user * Remove redundant code * Copy fixes * Create dry-socks-talk.md * fix problem what is when you use Qwen api provider and then you want to change the api provider ,the apiline dropdown will obscure your api provider drop-down options * feat: add qwen2.5-coder models Description Add new models as list: qwen2.5-coder-32b-instruct qwen2.5-coder-14b-instruct qwen2.5-coder-7b-instruct qwen2.5-coder-3b-instruct Doc: https://help.aliyun.com/zh/model-studio/getting-started/models#9f8890ce29g5u * add changeset * feat: add all alibaba qwen2.5 coder models --------- Co-authored-by: yaojunWang Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Co-authored-by: 刘耸 --- .changeset/gentle-glasses-flow.md | 5 +++ .changeset/slimy-roses-dance.md | 5 +++ src/shared/api.ts | 60 +++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 .changeset/gentle-glasses-flow.md create mode 100644 .changeset/slimy-roses-dance.md 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,