1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-02 00:20:30 +01:00

Remove MAX_NUM_CTX limit from Ollama integration (#166140)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ian Brown
2026-03-25 11:46:50 -07:00
committed by GitHub
parent 4d565e6089
commit f30217aa41
2 changed files with 0 additions and 3 deletions

View File

@@ -55,7 +55,6 @@ from .const import (
DEFAULT_THINK,
DEFAULT_TIMEOUT,
DOMAIN,
MAX_NUM_CTX,
MIN_NUM_CTX,
MODEL_NAMES,
)
@@ -478,7 +477,6 @@ def ollama_config_option_schema(
): NumberSelector(
NumberSelectorConfig(
min=MIN_NUM_CTX,
max=MAX_NUM_CTX,
step=1,
mode=NumberSelectorMode.BOX,
)

View File

@@ -17,7 +17,6 @@ DEFAULT_TIMEOUT = 5.0 # seconds
CONF_NUM_CTX = "num_ctx"
DEFAULT_NUM_CTX = 8192
MIN_NUM_CTX = 2048
MAX_NUM_CTX = 131072
DEFAULT_THINK = False
CONF_MAX_HISTORY = "max_history"