diff --git a/custom_components/ha_text_ai/const.py b/custom_components/ha_text_ai/const.py index 18b2b64..7bc2f2a 100644 --- a/custom_components/ha_text_ai/const.py +++ b/custom_components/ha_text_ai/const.py @@ -1,12 +1,13 @@ -"""Constants for the HA Text AI Integration.""" -DOMAIN = "ha_text_ai" +"""Constants for the HA Text AI Integration.""" +DOMAIN = "ha_text_ai" -CONF_API_KEY = "api_key" -CONF_API_BASE = "api_base" -CONF_REQUEST_INTERVAL = "request_interval" -DEFAULT_API_BASE = "https://api.openai.com/v1" -DEFAULT_REQUEST_INTERVAL = 2 +CONF_API_KEY = "api_key" +CONF_API_BASE = "api_base" +CONF_REQUEST_INTERVAL = "request_interval" -# Text Helper related -TEXT_HELPER_MAX_LENGTH = 65536 +DEFAULT_API_BASE = "https://api.openai.com/v1" +DEFAULT_REQUEST_INTERVAL = 5 # 5 seconds + +# Text Helper related +TEXT_HELPER_MAX_LENGTH = 65536 TEXT_HELPER_PREFIX = "text_ai_response_"