Ollama OpenAI API Compatibility: Drop-In Replacement Guide
Ollama exposes an OpenAI-compatible API at http://localhost:11434/v1. This is one of its most useful and underappreciated features — any application, library, or tool built for the OpenAI API can be pointed at your local Ollama instance with two changes: the base URL and the model name. No code changes to the actual logic, no switching … Read more