ollama

Functions

create_ollama_client(base_url = 'http://localhost:11434/v1', api_key = 'ollama')

create_instructor(base_url = 'http://localhost:11434/v1', api_key = 'instructor')

call_ollama(client, prompt, model)

call_ollama_vision(image_path, prompt, model, api_url)

Call Ollama vision model with an image and prompt.

set_up_task(client, model: str, reply_type: BaseModel, assistant_role = 'assistant', assistant_prompt: str = 'You are a helpful assistant.') -> Callable