mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-02 05:12:11 +03:00
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:
committed by
GitHub
parent
5b4f8e7fca
commit
f669335218
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user