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" ,
2024-11-20 01:02:27 +03:00
"description" : "Configure your AI integration for various providers (OpenAI, Anthropic, etc.). Different models have different capabilities and pricing." ,
2024-11-19 16:53:27 +03:00
"data" : {
2024-11-20 01:02:27 +03:00
"api_key" : "API key for authentication (required)" ,
"model" : "AI model to use (e.g., gpt-3.5-turbo, gpt-4, claude-3-sonnet, claude-3-opus)" ,
"temperature" : "Response creativity (0-2, lower = more focused and consistent)" ,
"max_tokens" : "Maximum response length (1-4096 tokens)" ,
"api_endpoint" : "Custom API endpoint URL (default varies by provider)" ,
"request_interval" : "Minimum time between requests in seconds (min: 0.1)" ,
"system_prompt" : "Default instructions for AI behavior and expertise"
2024-11-19 16:53:27 +03:00
}
2024-11-19 16:40:56 +03:00
}
2024-11-19 18:53:51 +03:00
},
"error" : {
2024-11-20 01:02:27 +03:00
"invalid_auth" : "Authentication failed - check your API key" ,
"invalid_api_key" : "Invalid API key - please verify your credentials" ,
"cannot_connect" : "Connection failed - check endpoint and network status" ,
"invalid_model" : "Model unavailable or not supported by the API" ,
"rate_limit" : "Rate limit exceeded - please reduce request frequency" ,
"context_length" : "Input exceeds maximum context length for model" ,
"api_error" : "API service error - check provider status" ,
"timeout" : "Request timeout - server not responding" ,
"queue_full" : "Request queue full - try again later" ,
"invalid_prompt" : "Invalid system prompt format or length" ,
"invalid_url_format" : "Invalid API endpoint URL format" ,
"invalid_input" : "Invalid configuration parameters" ,
"unknown" : "Unexpected error - check logs for details"
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" : {
2024-11-20 01:02:27 +03:00
"title" : "HA Text AI Settings" ,
"description" : "Adjust your AI integration parameters and behavior" ,
2024-11-19 16:53:27 +03:00
"data" : {
2024-11-20 01:02:27 +03:00
"model" : "Select AI model for responses (capabilities vary)" ,
"temperature" : "Response creativity (0-2, affects variation)" ,
"max_tokens" : "Maximum response length in tokens" ,
"request_interval" : "Minimum seconds between requests (rate limiting)" ,
"system_prompt" : "Default AI behavior and expertise instructions" ,
"timeout" : "Request timeout in seconds (default: 30)" ,
"retry_count" : "Number of retry attempts for failed requests" ,
"queue_size" : "Maximum pending requests in queue"
2024-11-19 16:53:27 +03:00
}
}
}
},
"services" : {
"ask_question" : {
"name" : "Ask Question" ,
2024-11-20 01:02:27 +03:00
"description" : "Send a question to the AI model and get a detailed response. Supports context awareness for follow-up questions." ,
2024-11-19 18:53:51 +03:00
"fields" : {
2024-11-19 16:53:27 +03:00
"question" : {
"name" : "Question" ,
2024-11-20 01:02:27 +03:00
"description" : "Your question or prompt for the AI model. Be specific for better results."
2024-11-19 18:53:51 +03:00
},
"system_prompt" : {
"name" : "System Prompt" ,
2024-11-20 01:02:27 +03:00
"description" : "Optional behavior instructions for this specific question"
2024-11-19 18:53:51 +03:00
},
"model" : {
"name" : "Model" ,
2024-11-20 01:02:27 +03:00
"description" : "Optional specific AI model for this request (overrides default)"
2024-11-19 18:53:51 +03:00
},
"temperature" : {
"name" : "Temperature" ,
2024-11-20 01:02:27 +03:00
"description" : "Optional creativity setting (0-2, affects response variation)"
2024-11-19 18:53:51 +03:00
},
"max_tokens" : {
"name" : "Max Tokens" ,
2024-11-20 01:02:27 +03:00
"description" : "Optional maximum response length (1-4096 tokens)"
2024-11-19 16:53:27 +03:00
}
}
},
"clear_history" : {
"name" : "Clear History" ,
2024-11-20 01:02:27 +03:00
"description" : "Delete all stored conversation history, responses, and metadata"
2024-11-19 16:53:27 +03:00
},
"get_history" : {
"name" : "Get History" ,
2024-11-20 01:02:27 +03:00
"description" : "Retrieve conversation history with detailed metadata including timestamps" ,
2024-11-19 18:53:51 +03:00
"fields" : {
"limit" : {
"name" : "Limit" ,
2024-11-20 01:02:27 +03:00
"description" : "Maximum number of conversations to return (1-100)"
2024-11-19 18:53:51 +03:00
},
"filter_model" : {
"name" : "Filter Model" ,
2024-11-20 01:02:27 +03:00
"description" : "Show only responses from a specific model"
},
"start_date" : {
"name" : "Start Date" ,
"description" : "Filter conversations from this date (YYYY-MM-DD)"
2024-11-19 18:53:51 +03:00
}
}
2024-11-19 16:53:27 +03:00
},
"set_system_prompt" : {
"name" : "Set System Prompt" ,
2024-11-20 01:02:27 +03:00
"description" : "Update default AI behavior and expertise instructions" ,
2024-11-19 18:53:51 +03:00
"fields" : {
"prompt" : {
"name" : "System Prompt" ,
2024-11-20 01:02:27 +03:00
"description" : "Instructions for AI behavior, expertise, and response style"
}
}
}
},
"entity" : {
"sensor" : {
"status" : {
"name" : "AI Status" ,
"state" : {
2024-11-20 01:09:19 +03:00
"ready" : "Ready for requests" ,
"processing" : "Processing request" ,
"error" : "Error occurred" ,
"disconnected" : "API disconnected" ,
"rate_limited" : "Rate limit reached" ,
"initializing" : "Starting up" ,
"retrying" : "Retrying request" ,
"queued" : "Request queued"
2024-11-20 01:02:27 +03:00
}
},
"last_response" : {
"name" : "Last Response" ,
"state" : {
"success" : "Success" ,
"error" : "Error" ,
"timeout" : "Timeout"
2024-11-19 18:53:51 +03:00
}
}
2024-11-19 16:53:27 +03:00
}
2024-11-19 14:00:33 +03:00
}
2024-11-14 18:35:18 +03:00
}