refactor(open-sse): registry consolidation + DRY media/oauth/adhoc cleanup
- Single-source registry: oauth clientId/tokenUrl, usage URLs, image/embed configs, search defaultModel, codex fixedPort, google token url derive. - Remove 29 unused OmniRoute providers (registry 100→71); media intact. - De-adhoc: codex literals → registry format/oauth flags; reasoningInject, image/embed openrouter headers + xai bodyFields config-driven. - Add REGISTRY_TEMPLATE.js + expand PROVIDER_DEFAULTS/schema JSDoc. - Baselines updated; PROVIDERS 62 + alias 90 byte-for-byte, golden snapshots. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
|
||||
export default {
|
||||
"id": "qwen",
|
||||
"alias": "qw",
|
||||
"id": "qwen", alias: "qw", display: { name: "Qwen Code", icon: "psychology", color: "#10B981", website: "https://chat.qwen.ai", notice: { signupUrl: "https://chat.qwen.ai" } },
|
||||
category: "oauth",
|
||||
"transport": {
|
||||
"baseUrl": "https://portal.qwen.ai/v1/chat/completions",
|
||||
"baseUrl": "https://portal.qwen.ai/v1/chat/completions"
|
||||
},
|
||||
"oauth": {
|
||||
"clientId": "f0304373b74a44d2b584a3fb70ca9e56",
|
||||
"deviceCodeUrl": "https://chat.qwen.ai/api/v1/oauth2/device/code",
|
||||
"tokenUrl": "https://chat.qwen.ai/api/v1/oauth2/token",
|
||||
"authUrl": "https://chat.qwen.ai/api/v1/oauth2/device/code"
|
||||
"scope": "openid profile email model.completion",
|
||||
"codeChallengeMethod": "S256"
|
||||
,
|
||||
refreshLeadMs: 1200000
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user