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:
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user