mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
- 71 registry files: flat `media.*Config.models` → `models[]` with `kind` field - `media` wrapper removed → serviceKinds, *Config fields promoted top-level - `type` field renamed to `kind` (llm/image/tts/stt/embedding/embedding/video/music) - providers/index.js: PROVIDER_MEDIA now built from flat top-level media fields - shared/constants/providers.js: buildProviderEntry reads flat top-level media fields - route /v1/models: modelKind() uses kind||type; removed subConfig merge block - models/info route: removed sub-config fallback lookup (all models in PROVIDER_MODELS) - ttsProviders/index.js: synthesizeViaConfig reads tts models from PROVIDER_MODELS - test-models route, helpers.js, validate route: kind||type compat - Baselines: PROVIDERS 62/62 ✅, Alias 90/90 ✅ Co-authored-by: Cursor <cursoragent@cursor.com>
44 lines
1.2 KiB
JavaScript
44 lines
1.2 KiB
JavaScript
export default {
|
|
id: "kilocode",
|
|
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" },
|
|
],
|
|
oauth: {
|
|
apiBaseUrl: "https://api.kilo.ai",
|
|
initiateUrl: "https://api.kilo.ai/api/device-auth/codes",
|
|
pollUrlBase: "https://api.kilo.ai/api/device-auth/codes",
|
|
},
|
|
};
|