mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-22 07:03:58 +08:00
- Added translations for: * Chinese (zh) * Serbian (sr) * Italian (it) * Hindi (hi) * Spanish (es) - Fixed minor bugs - Improved language coverage
267 lines
8.4 KiB
JSON
267 lines
8.4 KiB
JSON
{
|
||
"config": {
|
||
"step": {
|
||
"provider": {
|
||
"title": "选择 AI 提供商",
|
||
"description": "选择要用于此实例的 AI 服务提供商。",
|
||
"data": {
|
||
"api_provider": "API 提供商",
|
||
"context_messages": "要保留的上下文消息数量 (1-20)"
|
||
}
|
||
},
|
||
"user": {
|
||
"title": "配置 HA Text AI 实例",
|
||
"description": "使用您选择的提供商设置新的 AI 助手实例。",
|
||
"data": {
|
||
"name": "实例名称(例如,“GPT 助手”、“Claude 助手”)",
|
||
"api_key": "用于身份验证的 API 密钥",
|
||
"model": "要使用的 AI 模型",
|
||
"temperature": "回复创意度 (0-2,数值越低,回复越聚焦)",
|
||
"max_tokens": "最大回复长度(1-4096 个 Token)",
|
||
"api_endpoint": "自定义 API 端点 URL(可选)",
|
||
"api_provider": "API 提供商",
|
||
"request_interval": "请求之间的最短时间间隔(0.1-60 秒)",
|
||
"context_messages": "要保留的上下文消息数量 (1-20)",
|
||
"max_history_size": "最大对话历史记录大小 (1-100)"
|
||
}
|
||
}
|
||
},
|
||
"error": {
|
||
"name_exists": "已存在具有此名称的实例",
|
||
"invalid_name": "无效的实例名称",
|
||
"invalid_auth": "身份验证失败 - 请检查您的 API 密钥",
|
||
"invalid_api_key": "无效的 API 密钥 - 请验证您的凭据",
|
||
"cannot_connect": "无法连接到 API 服务",
|
||
"invalid_model": "所选模型不可用",
|
||
"rate_limit": "超出速率限制",
|
||
"context_length": "上下文长度超出限制",
|
||
"rate_limit_exceeded": "API 速率限制已超出",
|
||
"maintenance": "服务正在维护中",
|
||
"invalid_response": "收到无效的 API 响应",
|
||
"api_error": "发生 API 服务错误",
|
||
"timeout": "请求超时",
|
||
"invalid_instance": "指定的实例无效",
|
||
"unknown": "发生意外错误",
|
||
"empty": "名称不能为空",
|
||
"invalid_characters": "名称只能包含字母、数字、空格、下划线和连字符",
|
||
"name_too_long": "名称必须为 50 个字符或更少"
|
||
}
|
||
},
|
||
"options": {
|
||
"step": {
|
||
"init": {
|
||
"title": "更新实例设置",
|
||
"description": "修改此 AI 助手实例的设置。",
|
||
"data": {
|
||
"model": "AI 模型",
|
||
"temperature": "回复创意度 (0-2)",
|
||
"max_tokens": "最大回复长度 (1-4096)",
|
||
"request_interval": "最短请求间隔 (0.1-60 秒)",
|
||
"context_messages": "包含在上下文中的先前消息数 (1-20)",
|
||
"max_history_size": "最大对话历史记录大小 (1-100)"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"services": {
|
||
"ask_question": {
|
||
"name": "提问 (HA Text AI)",
|
||
"description": "向 AI 模型发送问题并接收详细的回复。回复将存储在对话历史记录中,以后可以检索。",
|
||
"fields": {
|
||
"instance": {
|
||
"name": "实例",
|
||
"description": "要使用的 HA Text AI 实例的名称"
|
||
},
|
||
"question": {
|
||
"name": "问题",
|
||
"description": "您要向 AI 助手提出的问题或提示"
|
||
},
|
||
"context_messages": {
|
||
"name": "上下文消息",
|
||
"description": "包含在上下文中的先前消息数 (1-20)"
|
||
},
|
||
"system_prompt": {
|
||
"name": "系统提示",
|
||
"description": "可选系统提示,用于为特定问题设置上下文"
|
||
},
|
||
"model": {
|
||
"name": "模型",
|
||
"description": "选择要使用的 AI 模型(可选,覆盖默认设置)"
|
||
},
|
||
"temperature": {
|
||
"name": "温度",
|
||
"description": "控制回复创意度 (0.0-2.0)"
|
||
},
|
||
"max_tokens": {
|
||
"name": "最大 Token 数",
|
||
"description": "回复的最大长度(1-4096 个 Token)"
|
||
}
|
||
}
|
||
},
|
||
"clear_history": {
|
||
"name": "清除历史记录",
|
||
"description": "删除对话历史记录中所有存储的问题和回复",
|
||
"fields": {
|
||
"instance": {
|
||
"name": "实例",
|
||
"description": "要清除历史记录的 HA Text AI 实例的名称"
|
||
}
|
||
}
|
||
},
|
||
"get_history": {
|
||
"name": "获取历史记录",
|
||
"description": "检索对话历史记录,并可选择进行过滤和排序",
|
||
"fields": {
|
||
"instance": {
|
||
"name": "实例",
|
||
"description": "要从中获取历史记录的 HA Text AI 实例的名称"
|
||
},
|
||
"limit": {
|
||
"name": "限制",
|
||
"description": "要返回的对话数量 (1-100)"
|
||
},
|
||
"filter_model": {
|
||
"name": "筛选模型",
|
||
"description": "按特定 AI 模型筛选对话"
|
||
},
|
||
"start_date": {
|
||
"name": "开始日期",
|
||
"description": "从该日期/时间开始筛选对话"
|
||
},
|
||
"include_metadata": {
|
||
"name": "包含元数据",
|
||
"description": "包含其他信息,例如使用的 Token 数、响应时间等。"
|
||
},
|
||
"sort_order": {
|
||
"name": "排序顺序",
|
||
"description": "结果的排序顺序(最新的或最早的优先)"
|
||
}
|
||
}
|
||
},
|
||
"set_system_prompt": {
|
||
"name": "设置系统提示",
|
||
"description": "为所有将来的对话设置默认系统行为说明",
|
||
"fields": {
|
||
"instance": {
|
||
"name": "实例",
|
||
"description": "要为其设置系统提示的 HA Text AI 实例的名称"
|
||
},
|
||
"prompt": {
|
||
"name": "系统提示",
|
||
"description": "定义 AI 如何行为和响应的说明"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"entity": {
|
||
"sensor": {
|
||
"ha_text_ai": {
|
||
"name": "{name}",
|
||
"state": {
|
||
"ready": "就绪",
|
||
"processing": "处理中",
|
||
"error": "错误",
|
||
"disconnected": "已断开连接",
|
||
"rate_limited": "速率限制",
|
||
"maintenance": "维护",
|
||
"initializing": "初始化中",
|
||
"retrying": "重试中",
|
||
"queued": "排队中"
|
||
},
|
||
"state_attributes": {
|
||
"question": {
|
||
"name": "最后一个问题"
|
||
},
|
||
"response": {
|
||
"name": "最后一个回复"
|
||
},
|
||
"model": {
|
||
"name": "当前模型"
|
||
},
|
||
"temperature": {
|
||
"name": "温度"
|
||
},
|
||
"max_tokens": {
|
||
"name": "最大 Token 数"
|
||
},
|
||
"system_prompt": {
|
||
"name": "系统提示"
|
||
},
|
||
"response_time": {
|
||
"name": "上次回复时间"
|
||
},
|
||
"total_responses": {
|
||
"name": "总回复次数"
|
||
},
|
||
"error_count": {
|
||
"name": "错误计数"
|
||
},
|
||
"last_error": {
|
||
"name": "上次错误"
|
||
},
|
||
"api_status": {
|
||
"name": "API 状态"
|
||
},
|
||
"tokens_used": {
|
||
"name": "已使用的 Token 总数"
|
||
},
|
||
"average_response_time": {
|
||
"name": "平均回复时间"
|
||
},
|
||
"last_request_time": {
|
||
"name": "上次请求时间"
|
||
},
|
||
"is_processing": {
|
||
"name": "处理状态"
|
||
},
|
||
"is_rate_limited": {
|
||
"name": "速率限制状态"
|
||
},
|
||
"is_maintenance": {
|
||
"name": "维护状态"
|
||
},
|
||
"api_version": {
|
||
"name": "API 版本"
|
||
},
|
||
"endpoint_status": {
|
||
"name": "端点状态"
|
||
},
|
||
"performance_metrics": {
|
||
"name": "性能指标"
|
||
},
|
||
"history_size": {
|
||
"name": "历史记录大小"
|
||
},
|
||
"uptime": {
|
||
"name": "正常运行时间"
|
||
},
|
||
"total_tokens": {
|
||
"name": "总 Token 数"
|
||
},
|
||
"prompt_tokens": {
|
||
"name": "提示 Token 数"
|
||
},
|
||
"completion_tokens": {
|
||
"name": "完成 Token 数"
|
||
},
|
||
"successful_requests": {
|
||
"name": "成功请求数"
|
||
},
|
||
"failed_requests": {
|
||
"name": "失败请求数"
|
||
},
|
||
"average_latency": {
|
||
"name": "平均延迟"
|
||
},
|
||
"max_latency": {
|
||
"name": "最大延迟"
|
||
},
|
||
"min_latency": {
|
||
"name": "最小延迟"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|