refactor(open-sse): registry consolidation + DRY media/oauth/adhoc cleanup
- Single-source registry: oauth clientId/tokenUrl, usage URLs, image/embed configs, search defaultModel, codex fixedPort, google token url derive. - Remove 29 unused OmniRoute providers (registry 100→71); media intact. - De-adhoc: codex literals → registry format/oauth flags; reasoningInject, image/embed openrouter headers + xai bodyFields config-driven. - Add REGISTRY_TEMPLATE.js + expand PROVIDER_DEFAULTS/schema JSDoc. - Baselines updated; PROVIDERS 62 + alias 90 byte-for-byte, golden snapshots. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,10 +1,27 @@
|
||||
|
||||
export default {
|
||||
"id": "ollama",
|
||||
"alias": "ollama",
|
||||
display: {
|
||||
"name": "Ollama Cloud",
|
||||
"icon": "cloud",
|
||||
"color": "#ffffffff",
|
||||
"textIcon": "OL",
|
||||
"website": "https://ollama.com",
|
||||
"notice": {
|
||||
"text": "Free tier: light usage, 1 cloud model at a time (limits reset every 5h & 7d). Pro $20/mo · Max $100/mo.",
|
||||
"apiKeyUrl": "https://ollama.com/settings/keys"
|
||||
}
|
||||
},
|
||||
category: "freeTier",
|
||||
"transport": {
|
||||
"baseUrl": "https://ollama.com/api/chat",
|
||||
"validateUrl": "https://ollama.com/api/tags",
|
||||
"format": "ollama"
|
||||
},
|
||||
media: {
|
||||
serviceKinds: ["llm"]
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"id": "gpt-oss:120b",
|
||||
@@ -30,5 +47,6 @@ export default {
|
||||
"id": "qwen3.5",
|
||||
"name": "Qwen3.5"
|
||||
}
|
||||
]
|
||||
],
|
||||
features: {"usage":true},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user