2024-11-18 00:43:28 +03:00
|
|
|
{
|
2024-11-19 16:40:56 +03:00
|
|
|
"config": {
|
2024-11-19 16:53:27 +03:00
|
|
|
"step": {
|
|
|
|
|
"user": {
|
|
|
|
|
"title": "Set up HA Text AI",
|
|
|
|
|
"description": "Configure your OpenAI integration",
|
|
|
|
|
"data": {
|
2024-11-19 16:59:42 +03:00
|
|
|
"api_key": "Your OpenAI API key",
|
|
|
|
|
"model": "AI model to use for responses",
|
|
|
|
|
"temperature": "Temperature for response generation (0-2)",
|
|
|
|
|
"max_tokens": "Maximum tokens in response (1-4096)",
|
|
|
|
|
"api_endpoint": "API endpoint URL",
|
|
|
|
|
"request_interval": "Minimum time between API requests (seconds)"
|
2024-11-19 16:53:27 +03:00
|
|
|
}
|
2024-11-19 16:40:56 +03:00
|
|
|
}
|
2024-11-18 00:43:28 +03:00
|
|
|
}
|
2024-11-19 16:40:56 +03:00
|
|
|
},
|
|
|
|
|
"options": {
|
2024-11-19 16:53:27 +03:00
|
|
|
"step": {
|
|
|
|
|
"init": {
|
|
|
|
|
"title": "HA Text AI Options",
|
|
|
|
|
"data": {
|
2024-11-19 16:59:42 +03:00
|
|
|
"temperature": "Response temperature (0-2)",
|
|
|
|
|
"max_tokens": "Maximum response length",
|
|
|
|
|
"request_interval": "Time between requests"
|
2024-11-19 16:53:27 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"services": {
|
|
|
|
|
"ask_question": {
|
|
|
|
|
"name": "Ask Question",
|
|
|
|
|
"description": "Send a question to the AI model",
|
2024-11-19 16:59:42 +03:00
|
|
|
"fields": {
|
2024-11-19 16:53:27 +03:00
|
|
|
"question": {
|
|
|
|
|
"name": "Question",
|
|
|
|
|
"description": "Your question for the AI"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"clear_history": {
|
|
|
|
|
"name": "Clear History",
|
|
|
|
|
"description": "Clear conversation history"
|
|
|
|
|
},
|
|
|
|
|
"get_history": {
|
|
|
|
|
"name": "Get History",
|
|
|
|
|
"description": "Retrieve conversation history"
|
|
|
|
|
},
|
|
|
|
|
"set_system_prompt": {
|
|
|
|
|
"name": "Set System Prompt",
|
|
|
|
|
"description": "Set system behavior instructions"
|
|
|
|
|
}
|
2024-11-19 14:00:33 +03:00
|
|
|
}
|
2024-11-14 18:35:18 +03:00
|
|
|
}
|