mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-25 00:24:00 +08:00
79 lines
3.2 KiB
JSON
79 lines
3.2 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "Set up HA Text AI",
|
|
"description": "Configure your AI integration with OpenAI or Anthropic providers.",
|
|
"data": {
|
|
"api_provider": "Select API Provider",
|
|
"api_key": "API key for authentication (required)",
|
|
"model": "AI model to use (provider-specific)",
|
|
"temperature": "Response creativity (0-2, lower = more focused and consistent)",
|
|
"max_tokens": "Maximum response length (1-4096 tokens)",
|
|
"api_endpoint": "Custom API endpoint URL (optional)",
|
|
"request_interval": "Minimum time between requests in seconds (min: 0.1)",
|
|
"name": "Integration name"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"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 selected provider",
|
|
"rate_limit": "Rate limit exceeded - please reduce request frequency",
|
|
"api_error": "API service error - check provider status",
|
|
"timeout": "Request timeout - server not responding",
|
|
"queue_full": "Request queue full - try again later",
|
|
"invalid_url_format": "Invalid API endpoint URL format",
|
|
"invalid_input": "Invalid configuration parameters",
|
|
"unknown": "Unexpected error - check logs for details"
|
|
}
|
|
},
|
|
"options": {
|
|
"step": {
|
|
"init": {
|
|
"title": "HA Text AI Settings",
|
|
"description": "Adjust your AI integration parameters",
|
|
"data": {
|
|
"model": "Select AI model (provider-specific)",
|
|
"temperature": "Response creativity (0-2)",
|
|
"max_tokens": "Maximum response length in tokens",
|
|
"request_interval": "Minimum seconds between requests"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"services": {
|
|
"ask_question": {
|
|
"name": "Ask Question",
|
|
"description": "Send a question to the AI model and get a detailed response.",
|
|
"fields": {
|
|
"question": {
|
|
"name": "Question",
|
|
"description": "Your question or prompt for the AI model"
|
|
},
|
|
"model": {
|
|
"name": "Model",
|
|
"description": "Optional specific AI model for this request"
|
|
},
|
|
"temperature": {
|
|
"name": "Temperature",
|
|
"description": "Optional creativity setting (0-2)"
|
|
},
|
|
"max_tokens": {
|
|
"name": "Max Tokens",
|
|
"description": "Optional maximum response length (1-4096 tokens)"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"entity": {
|
|
"sensor": {
|
|
"ha_text_ai": {
|
|
"name": "HA Text AI"
|
|
}
|
|
}
|
|
}
|
|
}
|