Tech
Ollama API: A Practical Guide with Examples
Originally published on DevToolHub .
Every Ollama install runs a local HTTP server on port 11434 , and that server is the real interface to the models. The ollama run command is a thin client on top of it. Once you know the two main endpoints, the streaming format, and the options object, you can wire a local model into any application.
There is also an OpenAI-compatible route, so existing code that talks to OpenAI can point at Ollama with a base-URL change.
How the Ollam...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to