Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.ollama.const Namespace Reference

Variables

string CONF_KEEP_ALIVE = "keep_alive"
 
string CONF_MAX_HISTORY = "max_history"
 
string CONF_MODEL = "model"
 
string CONF_NUM_CTX = "num_ctx"
 
string CONF_PROMPT = "prompt"
 
int DEFAULT_KEEP_ALIVE = -1
 
int DEFAULT_MAX_HISTORY = 20
 
string DEFAULT_MODEL = "llama3.2:latest"
 
int DEFAULT_NUM_CTX = 8192
 
float DEFAULT_TIMEOUT = 5.0
 
string DOMAIN = "ollama"
 
int KEEP_ALIVE_FOREVER = -1
 
int MAX_HISTORY_SECONDS = 60 * 60
 
int MAX_NUM_CTX = 131072
 
int MIN_NUM_CTX = 2048
 
list MODEL_NAMES
 

Detailed Description

Constants for the Ollama integration.

Variable Documentation

◆ CONF_KEEP_ALIVE

string homeassistant.components.ollama.const.CONF_KEEP_ALIVE = "keep_alive"

Definition at line 8 of file const.py.

◆ CONF_MAX_HISTORY

string homeassistant.components.ollama.const.CONF_MAX_HISTORY = "max_history"

Definition at line 19 of file const.py.

◆ CONF_MODEL

string homeassistant.components.ollama.const.CONF_MODEL = "model"

Definition at line 5 of file const.py.

◆ CONF_NUM_CTX

string homeassistant.components.ollama.const.CONF_NUM_CTX = "num_ctx"

Definition at line 14 of file const.py.

◆ CONF_PROMPT

string homeassistant.components.ollama.const.CONF_PROMPT = "prompt"

Definition at line 6 of file const.py.

◆ DEFAULT_KEEP_ALIVE

int homeassistant.components.ollama.const.DEFAULT_KEEP_ALIVE = -1

Definition at line 9 of file const.py.

◆ DEFAULT_MAX_HISTORY

int homeassistant.components.ollama.const.DEFAULT_MAX_HISTORY = 20

Definition at line 20 of file const.py.

◆ DEFAULT_MODEL

string homeassistant.components.ollama.const.DEFAULT_MODEL = "llama3.2:latest"

Definition at line 156 of file const.py.

◆ DEFAULT_NUM_CTX

int homeassistant.components.ollama.const.DEFAULT_NUM_CTX = 8192

Definition at line 15 of file const.py.

◆ DEFAULT_TIMEOUT

float homeassistant.components.ollama.const.DEFAULT_TIMEOUT = 5.0

Definition at line 12 of file const.py.

◆ DOMAIN

string homeassistant.components.ollama.const.DOMAIN = "ollama"

Definition at line 3 of file const.py.

◆ KEEP_ALIVE_FOREVER

int homeassistant.components.ollama.const.KEEP_ALIVE_FOREVER = -1

Definition at line 11 of file const.py.

◆ MAX_HISTORY_SECONDS

int homeassistant.components.ollama.const.MAX_HISTORY_SECONDS = 60 * 60

Definition at line 22 of file const.py.

◆ MAX_NUM_CTX

int homeassistant.components.ollama.const.MAX_NUM_CTX = 131072

Definition at line 17 of file const.py.

◆ MIN_NUM_CTX

int homeassistant.components.ollama.const.MIN_NUM_CTX = 2048

Definition at line 16 of file const.py.

◆ MODEL_NAMES

list homeassistant.components.ollama.const.MODEL_NAMES

Definition at line 24 of file const.py.