singularity-forge/packages/pi-ai/src
Jeremy McSpadden 04ebe3f0a0 feat(extensions): add Ollama extension for first-class local LLM support (#3371)
Self-contained extension at src/resources/extensions/ollama/ that
auto-detects a running Ollama instance, discovers locally pulled models,
and registers them as a first-class provider with zero configuration.

Features:
- Auto-discovery of local models via /api/tags on session_start
- Capability detection (vision, reasoning, context window) for 40+ model families
- /ollama slash command with status, list, pull, remove, ps subcommands
- ollama_manage LLM-callable tool for agent-driven model operations
- Onboarding flow with auto-detect (no API key required)
- Non-blocking async probe — doesn't delay TUI paint
- Respects OLLAMA_HOST env var for non-default endpoints

Core changes (minimal):
- Add "ollama" to KnownProvider in pi-ai types
- Add "ollama" key resolution in env-api-keys.ts
- Add "ollama" default model in model-resolver.ts
- Add "Ollama (Local)" to onboarding wizard with probe flow
2026-04-01 08:37:31 -06:00
..
providers fix: repair YAML bullet lists in malformed tool-call JSON (#3090) 2026-03-30 14:37:09 -06:00
utils fix: repair YAML bullet lists in malformed tool-call JSON (#3090) 2026-03-30 14:37:09 -06:00
api-registry.ts refactor: remove dead code (unused exports) (#1486) 2026-03-19 15:33:32 -06:00
bedrock-provider.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
cli.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
env-api-keys.ts feat(extensions): add Ollama extension for first-class local LLM support (#3371) 2026-04-01 08:37:31 -06:00
index.ts fix: repair YAML bullet lists in malformed tool-call JSON (#3090) 2026-03-30 14:37:09 -06:00
models.custom.ts feat(models): add GLM-5.1 to Z.AI provider in custom models 2026-03-27 14:49:43 -06:00
models.generated.ts fix(pi-ai): correct Copilot context window and output token limits (#2118) 2026-03-22 17:04:16 -06:00
models.test.ts test(models): add GLM-5.1 custom model tests 2026-03-27 16:48:11 -06:00
models.ts refactor(pi-ai): replace model-ID pattern matching with capability metadata (#2548) 2026-03-26 16:38:29 -06:00
oauth.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
stream.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
types.ts feat(extensions): add Ollama extension for first-class local LLM support (#3371) 2026-04-01 08:37:31 -06:00
web-runtime-env-api-keys.ts feat(web): browser-based web interface (#1717) 2026-03-21 12:16:54 -06:00
web-runtime-oauth.ts feat(web): browser-based web interface (#1717) 2026-03-21 12:16:54 -06:00