Create const.py

This commit is contained in:
smkrv
2024-11-14 18:30:03 +03:00
committed by GitHub
parent 205d28a6be
commit 39d363dc54
+12
View File
@@ -0,0 +1,12 @@
"""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
# Text Helper related
TEXT_HELPER_MAX_LENGTH = 65536
TEXT_HELPER_PREFIX = "text_ai_response_"