- Registry/constants: drop qmodel_preview/gm51model, add lite, qmodel_38max (Qwen3.8-Max), qfmodel (Qwen3.8-Flash), gmodel (GLM-5.3), gfmodel (GLM-5.3-Flash) - capabilities: add PROVIDER_CAPABILITIES['qoder'] so opaque internal ids resolve to their real models' context windows and limits - executor: preserve image blocks instead of flattening away, convert Claude-style image blocks, and hash images into chat_record_id - tests: cover image preservation, data-URI and Claude-block conversion - build(docker): use CN mirrors for apk and npm
62 lines
2.0 KiB
JavaScript
62 lines
2.0 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: "lite", name: "Lite" },
|
|
{ id: "qmodel_38max", name: "Qwen3.8-Max" },
|
|
{ id: "qmodel_latest", name: "Qwen3.7-Max" },
|
|
{ id: "qmodel", name: "Qwen3.7-Plus" },
|
|
{ id: "qfmodel", name: "Qwen3.8-Flash" },
|
|
{ id: "kmodel_latest", name: "Kimi-K3" },
|
|
{ id: "kmodel", name: "Kimi-K2.7-Code" },
|
|
{ id: "gmodel", name: "GLM-5.3" },
|
|
{ id: "gfmodel", name: "GLM-5.3-Flash" },
|
|
{ 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,
|
|
// PAT (apikey) connections also carry quota usage (via job-token exchange).
|
|
usageApikey: true,
|
|
},
|
|
};
|