Rename providers/ollama to providers/local
Ollama is one local-model server among several (LM Studio, llama.cpp's server, vLLM, ...) that all speak the same OpenAI-compatible shape — naming the package (and provider name downstream) after one of them was misleading. Same constructor, same default endpoint (Ollama's, being the most common), just generically named: NewLocalProvider. This renames a package published minutes ago in v0.3.8 with no other known consumers yet, so no compatibility shim is kept.
This commit is contained in:
1 parent
3b5aadb31f
commit
50b791d3b6
5 files changed
+45
-43
No files matched your search
+2
-2
@@ -60,7 +60,7 @@ The four mandatory pieces:
|
||||
|
||||
* **`llm.LLMProvider`** (in `RuntimeInputs.Provider`) — a streaming
|
||||
chat client (Anthropic / OpenAI / Gemini / LiteLLM / OpenRouter /
|
||||
Ollama, or your own).
|
||||
local (Ollama, LM Studio, etc.), or your own).
|
||||
* **`tool.Registry`** (in `RuntimeInputs.Tools`) — the tools the LLM
|
||||
may invoke. Each tool implements `tool.Tool`.
|
||||
* **`session.Session`** (in `RuntimeInputs.Session`) — append-only
|
||||
@@ -392,7 +392,7 @@ Each provider has its own constructor. All return an `llm.LLMProvider`.
|
||||
| Gemini | `gemini.NewGeminiProvider(ctx, apiKey)` | takes `context.Context` |
|
||||
| LiteLLM | `litellm.NewLiteLLMProvider(apiKey, baseURL)` | `baseURL` required (self-hosted) |
|
||||
| OpenRouter | `openrouter.NewOpenRouterProvider(apiKey, baseURL)` | `baseURL == ""` → OpenRouter's public endpoint |
|
||||
| Ollama | `ollama.NewOllamaProvider(baseURL)` | `baseURL == ""` → `http://localhost:11434/v1`; no API key |
|
||||
| Local | `local.NewLocalProvider(baseURL)` | `baseURL == ""` → `http://localhost:11434/v1` (Ollama's default; override for LM Studio, llama.cpp, vLLM, etc.); no API key |
|
||||
|
||||
The provider you pass on `RuntimeInputs.Provider` only needs to match the
|
||||
provider prefix in `AgentSpec.Model` — `runtime.BuildRuntime` parses
|
||||
|
||||
Reference in new issue
Block a user