Make your own Ollama Client
Rather than use Rig.rs or Ollama-rs let’s consider the bare bones of the frameworks that we take for granted.. We make a POST reqwest to the Ollama API and send a body specifying the model and messages ( role & content ). Next – iterate over the stream and display the chunks until there are […]