Can't add Ollama as Custom Provider, please make localhost-adapted version #1866
Replies: 3 comments
|
Could you share the exact error text/validation message (not just the screenshot) plus the values you entered? The common failure points for a localhost custom provider:
With the error message + your saved config (redact anything sensitive), it's a quick root-cause. Happy to dig in ? and if the validation itself rejects |
|
I checked the current custom-provider implementation. It does not reject http://localhost or require a non-empty API key. The create gate requires all of these before the button enables:
The API key can stay blank for local Ollama. First verify from the environment running DSH: The important boundary is that localhost belongs to the DSH host process, not the browser. If DSH runs in Docker, WSL, a VM, or another machine, 127.0.0.1 may point at the wrong environment even though Ollama works from the laptop shell. Stable visual guide with the exact field matrix and host-versus-browser diagnostic: Reviewable source change: If creation is still disabled after adding a model row, please paste the text shown under the form and the exact field values with secrets removed; the screenshot alone cannot distinguish a missing model gate from a host reachability failure. |
|
Localhost custom providers do work today — we run our own E2E batteries against Option A — pure settings ( llm-pi-ai:
providers:
ollama:
baseURL: http://127.0.0.1:11434/v1
apiKeyEnv: OLLAMA_API_KEY # Ollama ignores the value; export any non-empty stringOption B — a provider declaration through pi2dsh when you want to declare models/context windows/compat quirks explicitly — full worked recipe in examples/custom-gateways. Our validation battery drives exactly this posture against a localhost endpoint with real completions, tool calls and multi-thousand-token outputs ( Two localhost-specific gotchas we hit ourselves: declare Can't comment on the exact error in your screenshot (text not legible to me) — if it persists after the shape above, a transparent recording proxy in front of Ollama will show exactly what reached it. |
Uh oh!
There was an error while loading. Please reload this page.
All reactions