View Source API Reference Ollamex v0.2.0
Modules
Ollamex is an Elixir wrapper of ollama's REST API. This is the main module that contains high-level functions that the user will typically interact with.
Defines the struct for the parameters of the ollama REST API and provides helper functions for initializing a struct, updating the list of models, and generating a list of models available by the API.
Defines the struct used to store data of a chat message and provides helper functions to create a list of chat messages using the pipeline operator.
Defines the struct of a request to the /chat
endpoint of the ollama API.
Module containing helper functions used by the other modules of Ollamex.
The struct describing a response from an LLM on ollama, covering the fields that both the /generate
and the /chat
endpoints of the REST API return.
The struct describing a Large Language Model on ollama.
Defines the struct of a request to the /generate
endpoint of the ollama API.