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" : {
2024-11-24 02:20:29 +03:00
"provider" : {
"title" : "Select AI Provider" ,
"description" : "Choose which AI service provider to use for this instance" ,
2024-11-19 16:53:27 +03:00
"data" : {
2024-11-25 15:51:08 +03:00
"api_provider" : "API Provider" ,
"context_messages" : "Number of context messages to retain (1-20)"
2024-11-24 02:20:29 +03:00
}
},
"user" : {
"title" : "Configure HA Text AI Instance" ,
"description" : "Set up a new AI assistant instance with your selected provider" ,
"data" : {
"name" : "Instance name (e.g., 'GPT Assistant', 'Claude Helper')" ,
"api_key" : "API key for authentication" ,
"model" : "AI model to use" ,
"temperature" : "Response creativity (0-2, lower = more focused)" ,
2024-11-20 01:02:27 +03:00
"max_tokens" : "Maximum response length (1-4096 tokens)" ,
2024-11-22 01:34:47 +03:00
"api_endpoint" : "Custom API endpoint URL (optional)" ,
2024-11-25 15:42:04 +03:00
"request_interval" : "Minimum time between requests (0.1-60 seconds)" ,
"context_messages" : "Number of context messages to retain (1-20)"
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-24 02:20:29 +03:00
"name_exists" : "An instance with this name already exists" ,
"invalid_name" : "Invalid instance name" ,
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" ,
2024-11-24 02:20:29 +03:00
"cannot_connect" : "Failed to connect to API service" ,
"invalid_model" : "Selected model is not available" ,
"rate_limit" : "Rate limit exceeded" ,
2024-11-24 02:52:41 +03:00
"context_length" : "Context length exceeded" ,
"rate_limit_exceeded" : "API rate limit exceeded" ,
"maintenance" : "Service is under maintenance" ,
"invalid_response" : "Invalid API response received" ,
2024-11-24 02:20:29 +03:00
"api_error" : "API service error occurred" ,
"timeout" : "Request timed out" ,
"invalid_instance" : "Invalid instance specified" ,
"unknown" : "Unexpected error occurred"
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-24 02:20:29 +03:00
"title" : "Update Instance Settings" ,
"description" : "Modify settings for this AI assistant instance" ,
2024-11-19 16:53:27 +03:00
"data" : {
2024-11-24 02:20:29 +03:00
"model" : "AI model" ,
2024-11-22 01:34:47 +03:00
"temperature" : "Response creativity (0-2)" ,
2024-11-24 02:20:29 +03:00
"max_tokens" : "Maximum response length (1-4096)" ,
2024-11-25 15:42:04 +03:00
"request_interval" : "Minimum request interval (0.1-60 seconds)" ,
"context_messages" : "Number of previous messages to include in context (1-20)"
2024-11-19 16:53:27 +03:00
}
}
}
},
"services" : {
"ask_question" : {
2024-11-25 14:59:44 +03:00
"name" : "Ask Question (HA Text AI)" ,
2024-11-24 02:52:41 +03:00
"description" : "Send a question to the AI model and receive a detailed response. The response will be stored in the conversation history and can be retrieved later." ,
2024-11-19 18:53:51 +03:00
"fields" : {
2024-11-24 02:20:29 +03:00
"instance" : {
"name" : "Instance" ,
2024-11-24 02:58:04 +03:00
"description" : "Name of the HA Text AI instance to use"
2024-11-24 02:20:29 +03:00
},
2024-11-19 16:53:27 +03:00
"question" : {
"name" : "Question" ,
2024-11-24 02:58:04 +03:00
"description" : "Your question or prompt for the AI assistant"
2024-11-19 18:53:51 +03:00
},
2024-11-25 14:59:44 +03:00
"context_messages" : {
"name" : "Context Messages" ,
"description" : "Number of previous messages to include in context (1-20)"
},
2024-11-23 18:50:48 +03:00
"system_prompt" : {
"name" : "System Prompt" ,
2024-11-24 02:58:04 +03:00
"description" : "Optional system prompt to set context for this specific question"
2024-11-23 18:50:48 +03:00
},
2024-11-19 18:53:51 +03:00
"model" : {
"name" : "Model" ,
2024-11-24 02:58:04 +03:00
"description" : "Select AI model to use (optional, overrides default setting)"
2024-11-19 18:53:51 +03:00
},
"temperature" : {
"name" : "Temperature" ,
2024-11-24 02:58:04 +03:00
"description" : "Controls response creativity (0.0-2.0)"
2024-11-19 18:53:51 +03:00
},
"max_tokens" : {
"name" : "Max Tokens" ,
2024-11-24 02:58:04 +03:00
"description" : "Maximum length of the response (1-4096 tokens)"
2024-11-19 16:53:27 +03:00
}
}
2024-11-23 18:50:48 +03:00
},
"clear_history" : {
"name" : "Clear History" ,
2024-11-24 02:52:41 +03:00
"description" : "Delete all stored questions and responses from the conversation history" ,
2024-11-24 02:20:29 +03:00
"fields" : {
"instance" : {
"name" : "Instance" ,
2024-11-24 02:58:04 +03:00
"description" : "Name of the HA Text AI instance to clear history for"
2024-11-24 02:20:29 +03:00
}
}
2024-11-23 18:50:48 +03:00
},
"get_history" : {
"name" : "Get History" ,
2024-11-24 02:52:41 +03:00
"description" : "Retrieve conversation history with optional filtering and sorting" ,
2024-11-23 18:50:48 +03:00
"fields" : {
2024-11-24 02:20:29 +03:00
"instance" : {
"name" : "Instance" ,
2024-11-24 02:58:04 +03:00
"description" : "Name of the HA Text AI instance to get history from"
2024-11-24 02:20:29 +03:00
},
2024-11-23 18:50:48 +03:00
"limit" : {
"name" : "Limit" ,
2024-11-24 02:58:04 +03:00
"description" : "Number of conversations to return (1-100)"
2024-11-24 02:20:29 +03:00
},
"filter_model" : {
"name" : "Filter Model" ,
2024-11-24 02:58:04 +03:00
"description" : "Filter conversations by specific AI model"
2024-11-23 18:50:48 +03:00
},
"start_date" : {
"name" : "Start Date" ,
2024-11-24 02:58:04 +03:00
"description" : "Filter conversations starting from this date/time"
2024-11-23 18:50:48 +03:00
},
"include_metadata" : {
"name" : "Include Metadata" ,
2024-11-24 02:58:04 +03:00
"description" : "Include additional information like tokens used, response time, etc."
2024-11-23 18:50:48 +03:00
},
"sort_order" : {
"name" : "Sort Order" ,
2024-11-24 02:58:04 +03:00
"description" : "Sort order for results (newest or oldest first)"
2024-11-23 18:50:48 +03:00
}
}
},
"set_system_prompt" : {
"name" : "Set System Prompt" ,
2024-11-24 02:52:41 +03:00
"description" : "Set default system behavior instructions for all future conversations" ,
2024-11-23 18:50:48 +03:00
"fields" : {
2024-11-24 02:20:29 +03:00
"instance" : {
"name" : "Instance" ,
2024-11-24 02:58:04 +03:00
"description" : "Name of the HA Text AI instance to set system prompt for"
2024-11-24 02:20:29 +03:00
},
2024-11-23 18:50:48 +03:00
"prompt" : {
"name" : "System Prompt" ,
2024-11-24 02:58:04 +03:00
"description" : "Instructions that define how the AI should behave and respond"
2024-11-23 18:50:48 +03:00
}
}
2024-11-19 16:53:27 +03:00
}
2024-11-22 16:58:22 +03:00
},
"entity" : {
"sensor" : {
"ha_text_ai" : {
2024-11-23 00:36:58 +03:00
"name" : "{name}" ,
"state" : {
"ready" : "Ready" ,
"processing" : "Processing" ,
"error" : "Error" ,
"disconnected" : "Disconnected" ,
2024-11-23 18:50:48 +03:00
"rate_limited" : "Rate Limited" ,
2024-11-24 02:52:41 +03:00
"maintenance" : "Maintenance" ,
"initializing" : "Initializing" ,
2024-11-23 18:50:48 +03:00
"retrying" : "Retrying" ,
2024-11-24 02:20:29 +03:00
"queued" : "Queued"
2024-11-23 18:50:48 +03:00
},
"state_attributes" : {
2024-11-23 18:57:02 +03:00
"question" : {
2024-11-23 19:03:06 +03:00
"name" : "Last Question"
2024-11-23 18:57:02 +03:00
},
"response" : {
2024-11-23 19:03:06 +03:00
"name" : "Last Response"
2024-11-23 18:57:02 +03:00
},
"model" : {
2024-11-24 02:20:29 +03:00
"name" : "Current Model"
2024-11-23 18:57:02 +03:00
},
"temperature" : {
2024-11-23 19:03:06 +03:00
"name" : "Temperature"
2024-11-23 18:57:02 +03:00
},
"max_tokens" : {
2024-11-23 19:03:06 +03:00
"name" : "Max Tokens"
2024-11-23 18:57:02 +03:00
},
"system_prompt" : {
2024-11-23 19:03:06 +03:00
"name" : "System Prompt"
2024-11-23 18:57:02 +03:00
},
"response_time" : {
2024-11-24 02:20:29 +03:00
"name" : "Last Response Time"
2024-11-23 18:57:02 +03:00
},
2024-11-24 02:20:29 +03:00
"total_responses" : {
"name" : "Total Responses"
2024-11-23 18:57:02 +03:00
},
"error_count" : {
2024-11-23 19:03:06 +03:00
"name" : "Error Count"
2024-11-23 18:57:02 +03:00
},
"last_error" : {
2024-11-23 19:03:06 +03:00
"name" : "Last Error"
2024-11-23 18:57:02 +03:00
},
2024-11-24 02:20:29 +03:00
"api_status" : {
"name" : "API Status"
2024-11-23 18:57:02 +03:00
},
2024-11-24 02:20:29 +03:00
"tokens_used" : {
"name" : "Total Tokens Used"
2024-11-24 02:52:41 +03:00
},
"average_response_time" : {
"name" : "Average Response Time"
},
"last_request_time" : {
"name" : "Last Request Time"
},
"is_processing" : {
"name" : "Processing Status"
},
"is_rate_limited" : {
"name" : "Rate Limited Status"
},
"is_maintenance" : {
"name" : "Maintenance Status"
},
"api_version" : {
"name" : "API Version"
},
"endpoint_status" : {
"name" : "Endpoint Status"
},
"performance_metrics" : {
"name" : "Performance Metrics"
},
"history_size" : {
"name" : "History Size"
},
"uptime" : {
"name" : "Uptime"
},
"total_tokens" : {
"name" : "Total Tokens"
},
"prompt_tokens" : {
"name" : "Prompt Tokens"
},
"completion_tokens" : {
"name" : "Completion Tokens"
},
"successful_requests" : {
"name" : "Successful Requests"
},
"failed_requests" : {
"name" : "Failed Requests"
},
"average_latency" : {
"name" : "Average Latency"
},
"max_latency" : {
"name" : "Maximum Latency"
},
"min_latency" : {
"name" : "Minimum Latency"
2024-11-23 18:57:02 +03:00
}
2024-11-23 00:36:58 +03:00
}
2024-11-22 16:58:22 +03:00
}
}
2024-11-19 14:00:33 +03:00
}
2024-11-14 18:35:18 +03:00
}