Conversation
Adds a new Qwen provider (distinct from Qwen Code) using the qwen-ai-provider-v5 package and AI SDK. Uses Alibaba Cloud's DashScope API. - Add QwenHandler using AI SDK with streamText/generateText - Add 14 Qwen models (qwen-max, qwen-plus, qwen-turbo, vision models, etc.) - Add UI settings component with API key field - Add 22 tests for the provider Models included: - qwen-max, qwen-max-latest - qwen-plus, qwen-plus-latest (default) - qwen-turbo, qwen-turbo-latest - qwen2.5-72b/32b/14b/7b-instruct - qwen2.5-14b-instruct-1m (1M context) - qwen3-235b-a22b - qwen-vl-max, qwen-vl-plus (vision) Closes EXT-712
Reviewed latest changes adding Qwen translations. Found a duplicate key in the English locale file.
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
| import { | ||
| qwenModels, | ||
| qwenDefaultModelId, | ||
| QWEN_API_BASE_URL, | ||
| QWEN_API_BASE_URL_CHINA, | ||
| type ModelInfo, | ||
| } from "@roo-code/types" |
There was a problem hiding this comment.
QWEN_API_BASE_URL_CHINA is imported but never used in this file. The handler only uses QWEN_API_BASE_URL as the default when options.qwenBaseUrl is not provided. Consider removing this unused import.
| import { | |
| qwenModels, | |
| qwenDefaultModelId, | |
| QWEN_API_BASE_URL, | |
| QWEN_API_BASE_URL_CHINA, | |
| type ModelInfo, | |
| } from "@roo-code/types" | |
| import { | |
| qwenModels, | |
| qwenDefaultModelId, | |
| QWEN_API_BASE_URL, | |
| type ModelInfo, | |
| } from "@roo-code/types" |
Fix it with Roo Code or mention @roomote and request a fix.
| "getDoubaoApiKey": "Get Doubao API Key", | ||
| "qwenApiKey": "Qwen API Key", | ||
| "getQwenApiKey": "Get Qwen API Key", | ||
| "getQwenApiKey": "Get Qwen API Key", |
There was a problem hiding this comment.
Duplicate key getQwenApiKey - the line above already defines this key. In JSON objects, duplicate keys cause the second value to overwrite the first. This line should be removed.
| "getQwenApiKey": "Get Qwen API Key", |
Fix it with Roo Code or mention @roomote and request a fix.
Summary
Adds a new Qwen provider (distinct from Qwen Code) using the
qwen-ai-provider-v5package and AI SDK. Uses Alibaba Cloud's DashScope API.Changes
QwenHandlerusing AI SDK withstreamText/generateTextModels included
Testing
Closes EXT-712
Important
Implements Qwen provider with AI SDK, adds 14 models, updates UI, and includes comprehensive testing.
QwenHandlerusing AI SDK withstreamTextandgenerateTextfunctions.qwen.ts.ApiOptions.tsx.QwenHandlerinqwen.spec.tscovering constructor, getModel, createMessage, completePrompt, and model variants.provider-settings.tsandindex.tsto include Qwen provider.package.jsonto includeqwen-ai-provider-v5dependency.This description was created by
for c94b6d1. You can customize this summary. It will automatically update as commits are pushed.