Ollama
Ollama LLM backend via LiteLLM.
Classes:
-
OllamaBackend–LLM backend that calls Ollama models through LiteLLM.
OllamaBackend
¶
OllamaBackend(config: LLMConfig)
Bases: LLMBackend
LLM backend that calls Ollama models through LiteLLM.
Parameters:
-
config(LLMConfig) –The LLM configuration section from the Night Brownie runtime config.
Methods:
-
complete–Send a prompt to an Ollama model and return the text response.
complete
¶
Send a prompt to an Ollama model and return the text response.
Parameters:
-
prompt(str) –The user prompt to send to the model.
-
system(str | None, default:None) –Optional system prompt.
Returns:
-
str–The model's text response.