Module for interacting with the Ollama API. Ollama provides local LLM inference with various open-source models.
Summary
Functions
Callback implementation for GenAI.InferenceProviderBehaviour.chat/7.
Return config_key inference provide application config stored under :genai entry
Obtain map of effective settings: settings, model_settings, provider_settings, config_settings, etc.
Prepare endpoint and method to make inference call to
Callback implementation for GenAI.InferenceProviderBehaviour.generate_media/2.
Prepare request headers
Retrieves a list of models available on the local Ollama instance.
Prepare request body to be passed to inference call.
Build and run inference thread
Callback implementation for GenAI.InferenceProviderBehaviour.standardize_model/1.
Build and run inference thread in streaming mode
Callback implementation for GenAI.InferenceProviderBehaviour.supported_modalities/0.
Functions
Callback implementation for GenAI.InferenceProviderBehaviour.chat/7.
Return config_key inference provide application config stored under :genai entry
Obtain map of effective settings: settings, model_settings, provider_settings, config_settings, etc.
Prepare endpoint and method to make inference call to
Callback implementation for GenAI.InferenceProviderBehaviour.generate_media/2.
Prepare request headers
Retrieves a list of models available on the local Ollama instance.
Prepare request body to be passed to inference call.
Build and run inference thread
Callback implementation for GenAI.InferenceProviderBehaviour.standardize_model/1.
Build and run inference thread in streaming mode
Callback implementation for GenAI.InferenceProviderBehaviour.supported_modalities/0.