mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
Add modelsFetcher + passthroughModels so the dynamic Kilo Gateway catalog surfaces in the combo model picker, matching openrouter.js. Co-authored-by: Cursor <cursoragent@cursor.com>
52 lines
1.7 KiB
JavaScript
52 lines
1.7 KiB
JavaScript
export default {
|
|
id: "kilocode",
|
|
priority: 70,
|
|
alias: "kc",
|
|
uiAlias: "kc",
|
|
display: {
|
|
name: "Kilo Code",
|
|
icon: "code",
|
|
color: "#FF6B35",
|
|
textIcon: "KC",
|
|
website: "https://kilocode.ai",
|
|
notice: {
|
|
signupUrl: "https://kilocode.ai",
|
|
},
|
|
},
|
|
category: "oauth",
|
|
transport: {
|
|
baseUrl: "https://api.kilo.ai/api/openrouter/chat/completions",
|
|
headers: {},
|
|
auth: {
|
|
combined: true,
|
|
header: "Authorization",
|
|
scheme: "bearer",
|
|
hooks: [
|
|
"kilocodeOrg",
|
|
],
|
|
},
|
|
},
|
|
models: [
|
|
{ id: "anthropic/claude-sonnet-4-20250514", name: "Claude Sonnet 4" },
|
|
{ id: "anthropic/claude-opus-4-20250514", name: "Claude Opus 4" },
|
|
{ id: "google/gemini-2.5-pro", name: "Gemini 2.5 Pro" },
|
|
{ id: "google/gemini-2.5-flash", name: "Gemini 2.5 Flash" },
|
|
{ id: "openai/gpt-4.1", name: "GPT-4.1" },
|
|
{ id: "openai/o3", name: "o3" },
|
|
{ id: "deepseek/deepseek-chat", name: "DeepSeek Chat" },
|
|
{ id: "deepseek/deepseek-reasoner", name: "DeepSeek Reasoner" },
|
|
],
|
|
// Kilo Code proxies the OpenRouter catalog (334 models at time of writing),
|
|
// so the hardcoded list above is only a fallback. Surfacing the full catalog
|
|
// requires a fetcher + passthroughModels, matching how openrouter.js is set up.
|
|
// Without these, only the 8 hardcoded models appear in the combo model picker,
|
|
// hiding dynamic models like cohere/north-mini-code:free and poolside/laguna-m.1:free.
|
|
modelsFetcher: { url: "https://api.kilo.ai/api/gateway/models", type: "openrouter-free" },
|
|
passthroughModels: true,
|
|
oauth: {
|
|
apiBaseUrl: "https://api.kilo.ai",
|
|
initiateUrl: "https://api.kilo.ai/api/device-auth/codes",
|
|
pollUrlBase: "https://api.kilo.ai/api/device-auth/codes",
|
|
},
|
|
};
|