mirror of
https://github.com/home-assistant/core.git
synced 2026-04-18 07:56:03 +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_THINK,
|
||||||
DEFAULT_TIMEOUT,
|
DEFAULT_TIMEOUT,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
MAX_NUM_CTX,
|
|
||||||
MIN_NUM_CTX,
|
MIN_NUM_CTX,
|
||||||
MODEL_NAMES,
|
MODEL_NAMES,
|
||||||
)
|
)
|
||||||
@@ -478,7 +477,6 @@ def ollama_config_option_schema(
|
|||||||
): NumberSelector(
|
): NumberSelector(
|
||||||
NumberSelectorConfig(
|
NumberSelectorConfig(
|
||||||
min=MIN_NUM_CTX,
|
min=MIN_NUM_CTX,
|
||||||
max=MAX_NUM_CTX,
|
|
||||||
step=1,
|
step=1,
|
||||||
mode=NumberSelectorMode.BOX,
|
mode=NumberSelectorMode.BOX,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DEFAULT_TIMEOUT = 5.0 # seconds
|
|||||||
CONF_NUM_CTX = "num_ctx"
|
CONF_NUM_CTX = "num_ctx"
|
||||||
DEFAULT_NUM_CTX = 8192
|
DEFAULT_NUM_CTX = 8192
|
||||||
MIN_NUM_CTX = 2048
|
MIN_NUM_CTX = 2048
|
||||||
MAX_NUM_CTX = 131072
|
|
||||||
DEFAULT_THINK = False
|
DEFAULT_THINK = False
|
||||||
|
|
||||||
CONF_MAX_HISTORY = "max_history"
|
CONF_MAX_HISTORY = "max_history"
|
||||||
|
|||||||
Reference in New Issue
Block a user