The Provider Pattern: How I Added Ollama Support in 50 Lines
When I started building spectr-ai, it only worked with Claude. The Anthropic SDK was hardcoded everywhere — in the analysis function, the prompt formatting, the response parsing. It worked, but it meant every user needed an Anthropic API key and an i...
pavelespitia.hashnode.dev5 min read