2023-01-25 16:30:13 +00:00
|
|
|
"""Constants for the OpenAI Conversation integration."""
|
|
|
|
|
2024-04-09 15:10:03 +00:00
|
|
|
import logging
|
|
|
|
|
2023-01-25 16:30:13 +00:00
|
|
|
DOMAIN = "openai_conversation"
|
2024-05-03 00:38:12 +00:00
|
|
|
LOGGER = logging.getLogger(__package__)
|
2024-05-25 04:01:48 +00:00
|
|
|
|
|
|
|
CONF_RECOMMENDED = "recommended"
|
2023-01-25 16:30:13 +00:00
|
|
|
CONF_PROMPT = "prompt"
|
2024-05-24 20:04:48 +00:00
|
|
|
DEFAULT_PROMPT = """Answer in plain text. Keep it simple and to the point."""
|
2023-03-29 03:37:43 +00:00
|
|
|
CONF_CHAT_MODEL = "chat_model"
|
2024-05-25 04:01:48 +00:00
|
|
|
RECOMMENDED_CHAT_MODEL = "gpt-4o"
|
2023-01-30 13:24:11 +00:00
|
|
|
CONF_MAX_TOKENS = "max_tokens"
|
2024-05-25 04:01:48 +00:00
|
|
|
RECOMMENDED_MAX_TOKENS = 150
|
2023-01-30 13:24:11 +00:00
|
|
|
CONF_TOP_P = "top_p"
|
2024-05-25 04:01:48 +00:00
|
|
|
RECOMMENDED_TOP_P = 1.0
|
2023-01-30 13:24:11 +00:00
|
|
|
CONF_TEMPERATURE = "temperature"
|
2024-05-25 04:01:48 +00:00
|
|
|
RECOMMENDED_TEMPERATURE = 1.0
|