Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the Google Generative AI Conversation integration."""
2 
3 import logging
4 
5 DOMAIN = "google_generative_ai_conversation"
6 LOGGER = logging.getLogger(__package__)
7 CONF_PROMPT = "prompt"
8 
9 CONF_RECOMMENDED = "recommended"
10 CONF_CHAT_MODEL = "chat_model"
11 RECOMMENDED_CHAT_MODEL = "models/gemini-1.5-flash-latest"
12 CONF_TEMPERATURE = "temperature"
13 RECOMMENDED_TEMPERATURE = 1.0
14 CONF_TOP_P = "top_p"
15 RECOMMENDED_TOP_P = 0.95
16 CONF_TOP_K = "top_k"
17 RECOMMENDED_TOP_K = 64
18 CONF_MAX_TOKENS = "max_tokens"
19 RECOMMENDED_MAX_TOKENS = 150
20 CONF_HARASSMENT_BLOCK_THRESHOLD = "harassment_block_threshold"
21 CONF_HATE_BLOCK_THRESHOLD = "hate_block_threshold"
22 CONF_SEXUAL_BLOCK_THRESHOLD = "sexual_block_threshold"
23 CONF_DANGEROUS_BLOCK_THRESHOLD = "dangerous_block_threshold"
24 RECOMMENDED_HARM_BLOCK_THRESHOLD = "BLOCK_MEDIUM_AND_ABOVE"