feat(api): add first-class Ollama local provider card (#5712)

First-class ollama-local provider card (localhost:11434/v1, keyless, passthrough models) in LOCAL_PROVIDERS + SELF_HOSTED + default.ts executor case. Docs count 236→237, Local 11→12 (full README sweep). 4 tests. (#5578)
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-06-30 23:44:05 -03:00
committed by GitHub
parent 5b4f8e7fca
commit f669335218
8 changed files with 82 additions and 16 deletions

View File

@@ -151,6 +151,7 @@ export function isLocalProvider(providerId: unknown): boolean {
}
export const SELF_HOSTED_CHAT_PROVIDER_IDS = new Set([
"ollama-local",
"lm-studio",
"vllm",
"lemonade",

View File

@@ -3,6 +3,19 @@
* Pure data literal; re-exported by the providers.ts barrel. No behavior change.
*/
export const LOCAL_PROVIDERS = {
"ollama-local": {
id: "ollama-local",
alias: "ollama",
name: "Ollama",
icon: "pets",
color: "#58A6FF",
textIcon: "OL",
website: "https://ollama.com",
authHint:
"No API key required. Ollama runs locally — configure its OpenAI-compatible base URL (default: http://localhost:11434/v1) and make sure Ollama is running before connecting.",
localDefault: "http://localhost:11434/v1",
passthroughModels: true,
},
"lm-studio": {
id: "lm-studio",
alias: "lmstudio",