Skip to content

fix: update Qwen OAuth URLs from chat.qwen.ai to qwen.ai (closes #572) - #683

Merged
decolua merged 4 commits into
decolua:masterfrom
anuragg-saxenaa:fix/issue-572-qwen-oauth-url
Apr 22, 2026
Merged

decolua merged 4 commits into
decolua:masterfrom
anuragg-saxenaa:fix/issue-572-qwen-oauth-url

Conversation

@anuragg-saxenaa

Copy link
Copy Markdown
Contributor

Summary

Issue #572 pointed out that Qwen OAuth was using https://chat.qwen.ai/api/v1/oauth2/device/code and https://chat.qwen.ai/api/v1/oauth2/token, but the correct URL is https://qwen.ai/api/v1/oauth2/device/code and https://qwen.ai/api/v1/oauth2/token.

This is a minimal 2-line fix that updates the QWEN_CONFIG in src/lib/oauth/constants/oauth.js.

Fix

  • deviceCodeUrl: https://chat.qwen.ai/api/v1/oauth2/device/code → https://qwen.ai/api/v1/oauth2/device/code
  • tokenUrl: https://chat.qwen.ai/api/v1/oauth2/token → https://qwen.ai/api/v1/oauth2/token

Closes #572

@decolua
decolua merged commit 94ab0d7 into decolua:master Apr 22, 2026
zerray pushed a commit to zerray/9router that referenced this pull request Apr 23, 2026
…lua#572) (decolua#683)

* fix: make version update banner clickable to copy install command (closes decolua#598)

* fix: resolve ollama-local baseUrl from providerSpecificData.baseUrl for remote Ollama hosts (closes decolua#578)

* fix: add Ollama Cloud to usage/quota tracking (closes decolua#681)

* fix: update Qwen OAuth URLs from chat.qwen.ai to qwen.ai per issue decolua#572
idbara pushed a commit to idbara/9router that referenced this pull request Apr 23, 2026
…lua#572) (decolua#683)

* fix: make version update banner clickable to copy install command (closes decolua#598)

* fix: resolve ollama-local baseUrl from providerSpecificData.baseUrl for remote Ollama hosts (closes decolua#578)

* fix: add Ollama Cloud to usage/quota tracking (closes decolua#681)

* fix: update Qwen OAuth URLs from chat.qwen.ai to qwen.ai per issue decolua#572
luckystart79-lang pushed a commit to luckystart79-lang/minirouter that referenced this pull request May 2, 2026
…lua#572) (decolua#683)

* fix: make version update banner clickable to copy install command (closes decolua#598)

* fix: resolve ollama-local baseUrl from providerSpecificData.baseUrl for remote Ollama hosts (closes decolua#578)

* fix: add Ollama Cloud to usage/quota tracking (closes decolua#681)

* fix: update Qwen OAuth URLs from chat.qwen.ai to qwen.ai per issue decolua#572
caothu159 pushed a commit to diepxuan/9router that referenced this pull request May 14, 2026
…lua#572) (decolua#683)

* fix: make version update banner clickable to copy install command (closes decolua#598)

* fix: resolve ollama-local baseUrl from providerSpecificData.baseUrl for remote Ollama hosts (closes decolua#578)

* fix: add Ollama Cloud to usage/quota tracking (closes decolua#681)

* fix: update Qwen OAuth URLs from chat.qwen.ai to qwen.ai per issue decolua#572
diegosouzapw pushed a commit to diegosouzapw/OmniRoute that referenced this pull request Jun 22, 2026
The Qwen device-code OAuth flow was hitting
`https://chat.qwen.ai/api/v1/oauth2/{device/code,token}`, but the
authoritative host is `qwen.ai`. Updates QWEN_CONFIG in
`src/lib/oauth/constants/oauth.ts` to the canonical host and adds a
regression test that pins both hostnames so this cannot drift again.

Ported from upstream decolua/9router#683 (closes decolua/9router#572).

Inspired-by: decolua/9router#683
Co-authored-by: Anurag Saxena <anuragg.saxenaa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

heres how you fix qwen oauth

2 participants