mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-28 01:54:00 +08:00
102 lines
3.4 KiB
JSON
102 lines
3.4 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "Set up HA Text AI",
|
|
"description": "Configure your OpenAI integration",
|
|
"data": {
|
|
"api_key": {
|
|
"name": "API Key",
|
|
"description": "Your OpenAI API key"
|
|
},
|
|
"model": {
|
|
"name": "Model",
|
|
"description": "AI model to use for responses"
|
|
},
|
|
"temperature": {
|
|
"name": "Temperature",
|
|
"description": "Temperature for response generation (0-2)"
|
|
},
|
|
"max_tokens": {
|
|
"name": "Max Tokens",
|
|
"description": "Maximum tokens in response (1-4096)"
|
|
},
|
|
"api_endpoint": {
|
|
"name": "API Endpoint",
|
|
"description": "API endpoint URL"
|
|
},
|
|
"request_interval": {
|
|
"name": "Request Interval",
|
|
"description": "Minimum time between API requests (seconds)"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"step": {
|
|
"init": {
|
|
"title": "HA Text AI Options",
|
|
"data": {
|
|
"temperature": {
|
|
"name": "Temperature",
|
|
"description": "Response temperature (0-2)"
|
|
},
|
|
"max_tokens": {
|
|
"name": "Max Tokens",
|
|
"description": "Maximum response length"
|
|
},
|
|
"request_interval": {
|
|
"name": "Request Interval",
|
|
"description": "Time between requests"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"services": {
|
|
"ask_question": {
|
|
"name": "Ask Question",
|
|
"description": "Send a question to the AI model",
|
|
"fields": {
|
|
"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"
|
|
}
|
|
},
|
|
"error": {
|
|
"invalid_api_key": "Invalid API key",
|
|
"cannot_connect": "Cannot connect to the API",
|
|
"unknown_error": "Unknown error",
|
|
"invalid_model": "Invalid model",
|
|
"rate_limit_exceeded": "Rate limit exceeded",
|
|
"context_length_exceeded": "Context length exceeded",
|
|
"api_error": "API error",
|
|
"timeout_error": "Timeout error",
|
|
"queue_full": "Queue full",
|
|
"invalid_prompt": "Invalid prompt"
|
|
},
|
|
"state": {
|
|
"ready": "Ready",
|
|
"processing": "Processing",
|
|
"error": "Error",
|
|
"disconnected": "Disconnected",
|
|
"rate_limited": "Rate limited",
|
|
"initializing": "Initializing"
|
|
}
|
|
}
|