OptionalbaseBase URL for Ollama API (default: "http://localhost:11434"). Used for list, ps, show, pull, rm, run when server is reachable.
OptionalcliThe ollama binary, for management calls when the server is down and for
serve, stop, create. Pass runOllamaCLI from
llmwire/ollama-cli; it lives there so the main entry pulls
in no child_process. Without it those calls return ok: false.
Run the native ollama CLI with a subcommand and arguments.
Uses the system PATH to find ollama unless executablePath is set.
OptionalfetchCustom fetch (proxy agent, tracing, tests).
OptionalheadersSent on every request, after the provider's own headers.
OptionalmodelHow long (ms) a successful model listing is reused before discoverModels() fetches again. Default 300000; 0 disables.
OptionalmodelsSeed the supported-model list so no discovery call is needed.
OptionalollamaPath to the ollama executable (default: "ollama" from PATH)
OptionalpreferPrefer CLI over API when both are available (default: false = try API first)
OptionalstreamDefault idle timeout (ms) for this provider's streams.
OptionaltimeoutDefault whole-request timeout (ms) for this provider's JSON calls.
Optional configuration for OllamaProvider