refactor(open-sse): P3 provider registry — split into providers/registry/{id}.js
- 100 registry files: transport + models co-located per provider (Mongoose-style) - providers/shared.js: shared Claude headers + OS/arch helpers (deduped) - providers/models/helpers.js: withCodexReviewModels (kept dynamic) - providers/index.js builds PROVIDERS + PROVIDER_MODELS = old API (content byte-for-byte) - config/providers.js + providerModels.js → barrel re-export, keep accessors + runtime helpers - Verified: PROVIDERS/MODELS/OAuth/alias byte-for-byte, golden translator tests pass, 0 new regression Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
42
open-sse/providers/registry/kilocode.js
Normal file
42
open-sse/providers/registry/kilocode.js
Normal file
@@ -0,0 +1,42 @@
|
||||
export default {
|
||||
"id": "kilocode",
|
||||
"alias": "kc",
|
||||
"transport": {
|
||||
"baseUrl": "https://api.kilo.ai/api/openrouter/chat/completions",
|
||||
"headers": {}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user