- translator/index.js: replace require() with static side-effect imports (ESM-safe), lazy-init registry maps to survive circular import order - openai-responses->openai: map max_output_tokens -> max_tokens (avoid leaking field upstream) - gemini/antigravity -> openai: derive deterministic tool_call id from name so functionCall/functionResponse pair correctly (fixes provider tool-pairing 400s) - add offline unit tests (finish-reason, usage, session-manager, ollama malformed args, const guard) - add real-creds integration tests (provider-cases + all-formats matrix: 6 inbound formats x 4 scenarios) Includes co-located provider registry refactor (pricing/capabilities/media providers) and sessionManager updates. Co-authored-by: Cursor <cursoragent@cursor.com>
45 lines
1.2 KiB
JavaScript
45 lines
1.2 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" },
|
|
],
|
|
oauth: {
|
|
apiBaseUrl: "https://api.kilo.ai",
|
|
initiateUrl: "https://api.kilo.ai/api/device-auth/codes",
|
|
pollUrlBase: "https://api.kilo.ai/api/device-auth/codes",
|
|
},
|
|
};
|