Skip to main content
Interact with your Ollama models using LLM.

Parameters

An Ollama LLM interface can have the following parameters:

Usage

Here is how you setup an interface to interact with your Ollama models.
1
Create a config.yaml in the same directory your code is in.
  1. src
    1. yourPythonCode.py
    2. yourPyNotebook.py
    3. config.yaml
2
Define your Ollama provider and models inside the config.yaml file.
If you are not sure about any of these parameters, you can just leave them as 0
3
Create your llm instance.
4
Optional: You can add your parameters as follows:
You are done setting up your Ollama LLM!

What’s next?

LLM.chat()

Learn how to send messages and recieve responses next!

Tool calling Agent

Learn how to build a tool calling agent using llmstudio.