1 """Constants for the Google Generative AI Conversation integration."""
5 DOMAIN =
"google_generative_ai_conversation"
6 LOGGER = logging.getLogger(__package__)
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
15 RECOMMENDED_TOP_P = 0.95
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"