mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
Exchange Personal Access Tokens for short-lived job tokens, close the SSE stream on terminal frames so non-streaming clients do not hang, re-enable OAuth plus API-key auth modes, and replace the model catalog with the current Qoder aliases. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
57 lines
1.8 KiB
JavaScript
57 lines
1.8 KiB
JavaScript
export default {
|
|
id: "qoder",
|
|
priority: 30,
|
|
alias: "qd",
|
|
uiAlias: "qd",
|
|
display: {
|
|
name: "Qoder",
|
|
icon: "water_drop",
|
|
color: "#EC4899",
|
|
website: "https://qoder.com",
|
|
notice: {
|
|
signupUrl: "https://qoder.com",
|
|
},
|
|
},
|
|
category: "oauth",
|
|
authModes: ["oauth", "apikey"],
|
|
hasOAuth: true,
|
|
authHint: "Personal Access Token (pt-...) từ https://qoder.com/account/integrations",
|
|
transport: {
|
|
baseUrl: "https://api3.qoder.sh/algo/api/v2/service/pro/sse/agent_chat_generation",
|
|
headers: {},
|
|
timeoutMs: 120000,
|
|
stallTimeoutMs: 120000,
|
|
usage: {
|
|
url: "https://openapi.qoder.sh/api/v2/quota/usage",
|
|
},
|
|
},
|
|
models: [
|
|
{ id: "ultimate", name: "Ultimate" },
|
|
{ id: "auto", name: "Auto" },
|
|
{ id: "performance", name: "Performance" },
|
|
{ id: "efficient", name: "Efficient" },
|
|
{ id: "qmodel_preview", name: "Qwen3.8-Max-Preview" },
|
|
{ id: "qmodel_latest", name: "Qwen3.7-Max" },
|
|
{ id: "qmodel", name: "Qwen3.7-Plus" },
|
|
{ id: "kmodel_latest", name: "Kimi-K3" },
|
|
{ id: "kmodel", name: "Kimi-K2.7-Code" },
|
|
{ id: "gm51model", name: "GLM-5.2" },
|
|
{ id: "dmodel", name: "DeepSeek-V4-Pro" },
|
|
{ id: "dfmodel", name: "DeepSeek-V4-Flash" },
|
|
{ id: "mmodel", name: "MiniMax-M3" },
|
|
],
|
|
oauth: {
|
|
openApiBaseUrl: "https://openapi.qoder.sh",
|
|
centerBaseUrl: "https://center.qoder.sh",
|
|
chatBaseUrl: "https://api3.qoder.sh",
|
|
deviceTokenUrl: "https://openapi.qoder.sh/api/v1/deviceToken/poll",
|
|
refreshUrl: "https://center.qoder.sh/algo/api/v3/user/refresh_token",
|
|
userInfoUrl: "https://openapi.qoder.sh/api/v1/userinfo",
|
|
quotaUsageUrl: "https://openapi.qoder.sh/api/v2/quota/usage",
|
|
loginUrl: "https://qoder.com/device/selectAccounts",
|
|
},
|
|
features: {
|
|
usage: true,
|
|
},
|
|
};
|