Update const.py

This commit is contained in:
smkrv
2024-11-15 00:59:39 +03:00
committed by GitHub
parent 7c4331bea3
commit a6218c1cac
+10 -9
View File
@@ -1,12 +1,13 @@
"""Constants for the HA Text AI Integration.""" """Constants for the HA Text AI Integration."""
DOMAIN = "ha_text_ai" DOMAIN = "ha_text_ai"
CONF_API_KEY = "api_key" CONF_API_KEY = "api_key"
CONF_API_BASE = "api_base" CONF_API_BASE = "api_base"
CONF_REQUEST_INTERVAL = "request_interval" CONF_REQUEST_INTERVAL = "request_interval"
DEFAULT_API_BASE = "https://api.openai.com/v1"
DEFAULT_REQUEST_INTERVAL = 2
# Text Helper related DEFAULT_API_BASE = "https://api.openai.com/v1"
TEXT_HELPER_MAX_LENGTH = 65536 DEFAULT_REQUEST_INTERVAL = 5 # 5 seconds
# Text Helper related
TEXT_HELPER_MAX_LENGTH = 65536
TEXT_HELPER_PREFIX = "text_ai_response_" TEXT_HELPER_PREFIX = "text_ai_response_"