mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-29 20:43:56 +08:00
fix: Display only last Q&A in sensor state to prevent data truncation
- Show only the latest question and answer in sensor state - Keep full conversation history in attributes - Fix truncation issues in Home Assistant UI - Maintain backwards compatibility - No configuration changes required
This commit is contained in:
@@ -56,7 +56,7 @@ DEFAULT_NAME: Final = "HA Text AI"
|
|||||||
DEFAULT_NAME_PREFIX = "ha_text_ai"
|
DEFAULT_NAME_PREFIX = "ha_text_ai"
|
||||||
DEFAULT_CONTEXT_MESSAGES: Final = 5
|
DEFAULT_CONTEXT_MESSAGES: Final = 5
|
||||||
|
|
||||||
TRUNCATION_INDICATOR = " … "
|
TRUNCATION_INDICATOR = " ... "
|
||||||
|
|
||||||
# Parameter constraints
|
# Parameter constraints
|
||||||
MIN_TEMPERATURE: Final = 0.0
|
MIN_TEMPERATURE: Final = 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user