fix(providers): correct Qwen OpenAI-compatible base URL path to /compatible-mode/v1#125
Closed
andrei-hasna wants to merge 2 commits into
Closed
Conversation
…atible-mode/v1 The Qwen (Alibaba Model Studio) OpenAI-compatible base URL used the DashScope Application/RAG API prefix (/api/v2/apps/protocols/) instead of the Chat Completions compatible-mode path. Per official Alibaba docs (compatibility-of-openai-with-dashscope, checked 2026-07-05) the correct region-agnostic international endpoint is https://dashscope-intl.aliyuncs.com/compatible-mode/v1. Kept the legacy dashscope-intl domain as the zero-config default; workspace-specific domains require a per-user {WorkspaceId} placeholder and cannot be a default. Updated both QWEN_BASE_URL constants (model-provider-info, known-provider-models) to stay byte-identical. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Author
|
[codewith] Merge review update for task 956c88bf:
Final merge should use squash/reword so the original commit's Co-Authored-By trailer is not carried into main. |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Qwen (Alibaba Model Studio) OpenAI-compatible base URL used the DashScope Application/RAG API prefix (
/api/v2/apps/protocols/) instead of the Chat Completions compatible-mode path.Per official Alibaba docs (Call Qwen models via OpenAI API, checked 2026-07-05), the OpenAI-compatible base path is
/compatible-mode/v1. The correct region-agnostic international endpoint is:Decision
Kept the legacy
dashscope-intldomain as the zero-config default. Alibaba recommends (does not require) migrating to workspace-specific domains (https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1), but those need a per-user{WorkspaceId}placeholder and therefore cannot be a default; the legacy domain remains fully functional. Advanced users can still override viaconfig.tomlmodel_providers.Changes
codex-rs/model-provider-info/src/lib.rs:QWEN_BASE_URL→https://dashscope-intl.aliyuncs.com/compatible-mode/v1codex-rs/known-provider-models/src/lib.rs:QWEN_BASE_URL→ same value (kept byte-identical)Validation
cargo test -p codex-model-provider-info -p codex-known-provider-models -p codex-model-provider— 66 + 16 + 64 passed, 0 failedcargo clippy -p codex-model-provider-info -p codex-known-provider-models --all-targets— cleangrep -rn 'api/v2/apps/protocols'— no remaining occurrencesTask: eb7606a1-597e-4588-9a00-cda6c188f696
🤖 Generated with Claude Code