mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-23 23:54:02 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6bfbd4a07 | ||
|
|
4ddb0dc977 | ||
|
|
24dc4ac4d4 |
@@ -9,6 +9,6 @@
|
|||||||
"issue_tracker": "https://github.com/smkrv/ha-text-ai/issues",
|
"issue_tracker": "https://github.com/smkrv/ha-text-ai/issues",
|
||||||
"requirements": ["openai>=1.0.0"],
|
"requirements": ["openai>=1.0.0"],
|
||||||
"ssdp": [],
|
"ssdp": [],
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"zeroconf": []
|
"zeroconf": []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,11 +131,6 @@ get_history:
|
|||||||
mode: dropdown
|
mode: dropdown
|
||||||
|
|
||||||
set_system_prompt:
|
set_system_prompt:
|
||||||
name: Set System Prompt
|
|
||||||
description: >-
|
|
||||||
Configure the AI's behavior by setting a system prompt.
|
|
||||||
This affects how the AI interprets and responds to all future questions.
|
|
||||||
The prompt will persist until changed or cleared.
|
|
||||||
fields:
|
fields:
|
||||||
prompt:
|
prompt:
|
||||||
name: System Prompt
|
name: System Prompt
|
||||||
@@ -157,14 +152,3 @@ set_system_prompt:
|
|||||||
text:
|
text:
|
||||||
multiline: true
|
multiline: true
|
||||||
type: text
|
type: text
|
||||||
max_length: 1000
|
|
||||||
|
|
||||||
clear_prompt:
|
|
||||||
name: Clear Existing Prompt
|
|
||||||
description: >-
|
|
||||||
Set to true to remove the current system prompt before applying the new one.
|
|
||||||
This ensures no conflicting instructions remain.
|
|
||||||
required: false
|
|
||||||
default: false
|
|
||||||
selector:
|
|
||||||
boolean: {}
|
|
||||||
|
|||||||
@@ -1,61 +1,54 @@
|
|||||||
{
|
{
|
||||||
"config": {
|
"config": {
|
||||||
"option": {
|
"step": {
|
||||||
"api_key": {
|
"user": {
|
||||||
"name": "API Key",
|
"title": "Set up HA Text AI",
|
||||||
"description": "Your OpenAI API key"
|
"description": "Configure your OpenAI integration",
|
||||||
},
|
"data": {
|
||||||
"model": {
|
"api_key": "Your OpenAI API key",
|
||||||
"name": "Model",
|
"model": "AI model to use for responses",
|
||||||
"description": "AI model to use for responses"
|
"temperature": "Temperature for response generation (0-2)",
|
||||||
},
|
"max_tokens": "Maximum tokens in response (1-4096)",
|
||||||
"temperature": {
|
"api_endpoint": "API endpoint URL",
|
||||||
"name": "Temperature",
|
"request_interval": "Minimum time between API requests (seconds)"
|
||||||
"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": {
|
"options": {
|
||||||
"temperature": "Temperature",
|
"step": {
|
||||||
"max_tokens": "Max Tokens",
|
"init": {
|
||||||
"request_interval": "Request Interval"
|
"title": "HA Text AI Options",
|
||||||
},
|
"data": {
|
||||||
"error": {
|
"temperature": "Response temperature (0-2)",
|
||||||
"invalid_api_key": "Invalid API key",
|
"max_tokens": "Maximum response length",
|
||||||
"cannot_connect": "Cannot connect to the API",
|
"request_interval": "Time between requests"
|
||||||
"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"
|
|
||||||
},
|
},
|
||||||
"services": {
|
"services": {
|
||||||
"ask_question": "Ask Question",
|
"ask_question": {
|
||||||
"clear_history": "Clear History",
|
"name": "Ask Question",
|
||||||
"get_history": "Get History",
|
"description": "Send a question to the AI model",
|
||||||
"set_system_prompt": "Set System Prompt"
|
"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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,61 +1,54 @@
|
|||||||
{
|
{
|
||||||
"config": {
|
"config": {
|
||||||
"option": {
|
"step": {
|
||||||
"api_key": {
|
"user": {
|
||||||
"name": "API ключ",
|
"title": "Настройка HA Text AI",
|
||||||
"description": "Ваш API ключ OpenAI"
|
"description": "Настройка интеграции с OpenAI",
|
||||||
},
|
"data": {
|
||||||
"model": {
|
"api_key": "Ваш ключ API OpenAI",
|
||||||
"name": "Модель",
|
"model": "Модель ИИ для генерации ответов",
|
||||||
"description": "Модель AI для генерации ответов"
|
"temperature": "Температура генерации ответов (0-2)",
|
||||||
},
|
"max_tokens": "Максимальное количество токенов в ответе (1-4096)",
|
||||||
"temperature": {
|
"api_endpoint": "URL конечной точки API",
|
||||||
"name": "Температура",
|
"request_interval": "Минимальное время между запросами к API (секунды)"
|
||||||
"description": "Температура для генерации ответов (0-2)"
|
}
|
||||||
},
|
|
||||||
"max_tokens": {
|
|
||||||
"name": "Максимальное количество токенов",
|
|
||||||
"description": "Максимальное количество токенов в ответе (1-4096)"
|
|
||||||
},
|
|
||||||
"api_endpoint": {
|
|
||||||
"name": "Конечная точка API",
|
|
||||||
"description": "URL конечной точки API"
|
|
||||||
},
|
|
||||||
"request_interval": {
|
|
||||||
"name": "Интервал запросов",
|
|
||||||
"description": "Минимальное время между запросами к API в секундах"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"temperature": "Температура",
|
"step": {
|
||||||
"max_tokens": "Максимальное количество токенов",
|
"init": {
|
||||||
"request_interval": "Интервал запросов"
|
"title": "Настройки HA Text AI",
|
||||||
},
|
"data": {
|
||||||
"error": {
|
"temperature": "Температура ответов (0-2)",
|
||||||
"invalid_api_key": "Неверный API ключ",
|
"max_tokens": "Максимальная длина ответа",
|
||||||
"cannot_connect": "Не удается подключиться к API",
|
"request_interval": "Время между запросами"
|
||||||
"unknown_error": "Неизвестная ошибка",
|
}
|
||||||
"invalid_model": "Неверная модель",
|
}
|
||||||
"rate_limit_exceeded": "Превышен лимит запросов",
|
}
|
||||||
"context_length_exceeded": "Превышена длина контекста",
|
|
||||||
"api_error": "Ошибка API",
|
|
||||||
"timeout_error": "Время ожидания истекло",
|
|
||||||
"queue_full": "Очередь полна",
|
|
||||||
"invalid_prompt": "Неверный запрос"
|
|
||||||
},
|
|
||||||
"state": {
|
|
||||||
"ready": "Готово",
|
|
||||||
"processing": "Обработка",
|
|
||||||
"error": "Ошибка",
|
|
||||||
"disconnected": "Отключено",
|
|
||||||
"rate_limited": "Ограниченный по скорости",
|
|
||||||
"initializing": "Инициализация"
|
|
||||||
},
|
},
|
||||||
"services": {
|
"services": {
|
||||||
"ask_question": "Задать вопрос",
|
"ask_question": {
|
||||||
"clear_history": "Очистить историю",
|
"name": "Задать вопрос",
|
||||||
"get_history": "Получить историю",
|
"description": "Отправить вопрос модели ИИ",
|
||||||
"set_system_prompt": "Установить системный запрос"
|
"fields": {
|
||||||
|
"question": {
|
||||||
|
"name": "Вопрос",
|
||||||
|
"description": "Ваш вопрос для ИИ"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"clear_history": {
|
||||||
|
"name": "Очистить историю",
|
||||||
|
"description": "Очистить историю разговора"
|
||||||
|
},
|
||||||
|
"get_history": {
|
||||||
|
"name": "Получить историю",
|
||||||
|
"description": "Получить историю разговора"
|
||||||
|
},
|
||||||
|
"set_system_prompt": {
|
||||||
|
"name": "Установить системный промпт",
|
||||||
|
"description": "Установить инструкции поведения системы"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -4,6 +4,6 @@
|
|||||||
"domains": ["sensor"],
|
"domains": ["sensor"],
|
||||||
"homeassistant": "2024.11.0",
|
"homeassistant": "2024.11.0",
|
||||||
"icon": "mdi:brain",
|
"icon": "mdi:brain",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"documentation": "https://github.com/smkrv/ha-text-ai"
|
"documentation": "https://github.com/smkrv/ha-text-ai"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user