pub async fn request_ollama(
prompt: &str,
model: Option<&str>,
debug: Option<bool>,
) -> StringExpand description
Sends a request to the Ollama API and returns the generated response as a string.
§Arguments
prompt- The prompt to send to the Ollama API.model- The model to use for the request. Defaults to “rnj-1:latest” if not provided.debug- If true, returns a debug message instead of sending a request.
§Returns
A String containing the generated response if successful, or an error message if an error occurred.