Fix #215: pluggable LLM + embedding provider abstraction #235
Reference in New Issue
Block a user
Delete Branch "model-provider-abstraction"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Vendor-agnostic seam for the AI assistant + match ranking.
LLMProvider/EmbeddingProviderABCs — separate (Anthropic has no embeddings endpoint; each configured independently, either can be off).NullLLMProvider/NullEmbeddingProviderdefault — fail loud with a clear "not configured" error.AnthropicLLMProvider(officialanthropicSDK, defaultclaude-opus-4-8). A local provider (Ollama) would be another subclass.MODEL_PROVIDER/EMBEDDING_PROVIDER; documented in.env.example.Providers never touch the DB — the AI-never-writes invariant holds; writes go through ChangeProposal (#214). Tests: selection + null fail-loud. 81 passed.
Closes #215
🤖 Generated with Claude Code