Files
OmniRoute/open-sse/config/providers/registry/qwen/web/index.ts
backryun 65e0aeda79 [Part 1/3]refactor(qwen): replace legacy Qwen Code and remove OAuth provider (#7866)
* refactor(cli): remove legacy Qwen Code integration

* refactor(qwen): remove deprecated Qwen OAuth provider

* feat(cli): rebuild Qwen Code integration for upstream V4

* fix(qwen): clear stale CLI auth on reset

* test(qwen): align retired provider coverage

* fix(db): renumber qwen-cleanup migration 129 -> 130

release/v3.8.49 tip took slot 129 via #7843 (usage_history_codex_strong_identity,
itself renumbered from 128 during the #7838/#7840 base-red cleanup) after this
branch forked; renumber remove_unregistered_qwen_data to 130.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>

---------

Co-authored-by: Diego Rodrigues de Sa e Souza <8016841+diegosouzapw@users.noreply.github.com>
2026-07-20 17:53:04 -03:00

24 lines
968 B
TypeScript

import type { RegistryEntry } from "../../../shared.ts";
export const qwen_webProvider: RegistryEntry = {
id: "qwen-web",
// The web/cookie variant is addressed by its own id.
alias: "qwen-web",
format: "openai",
executor: "qwen-web",
// v2 API (the legacy /api/chat/completions endpoint was retired upstream).
// Restored after the registry modularization (#3993) regressed this to v1 with
// a retired catalog. Source of truth: pre-#3993 providerRegistry.ts (commit 1ed01dd90^).
baseUrl: "https://chat.qwen.ai/api/v2/chat/completions",
authType: "apikey",
authHeader: "bearer",
// Current upstream catalog (GET https://chat.qwen.ai/api/models). Legacy
// ids (qwen-plus, qwen3-max, ...) still resolve via the executor's
// MODEL_ALIASES map for backward compatibility.
models: [
{ id: "qwen3.7-max", name: "Qwen3.7 Max" },
{ id: "qwen3.7-plus", name: "Qwen3.7 Plus" },
{ id: "qwen3.6-plus", name: "Qwen3.6 Plus" },
],
};