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
| Interface | Description |
|---|---|
| OllamaAdapterOptions | Options accepted by ollamaAdapter. |
Variables
| Variable | Description |
|---|---|
| DEFAULT_OLLAMA_BASE_URL | Default Ollama base URL. |
Functions
| Function | Description |
|---|---|
| ollamaAdapter | Build 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. |