Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/provider / adapters/ollama

adapters/ollama

Direct adapter for the Ollama HTTP API. The adapter speaks the native Ollama streaming JSON protocol (POST /api/chat returning newline-delimited JSON objects). For operators who prefer the OpenAI-compatible variant exposed by recent Ollama releases, the generic openAICompatibleAdapter is the better choice — both adapters share the same LocalProviderTrust classifier and LocalProviderInsecureTransportError startup behaviour.

Interfaces

InterfaceDescription
OllamaAdapterOptionsOptions accepted by ollamaAdapter.

Variables

VariableDescription
DEFAULT_OLLAMA_BASE_URLDefault Ollama base URL.

Functions

FunctionDescription
ollamaAdapterBuild a Graphorin Provider backed by Ollama's native HTTP API. The adapter is fail-safe by default: public-cleartext URLs refuse to start with LocalProviderInsecureTransportError.