添加ai支持

This commit is contained in:
2026-06-10 16:04:42 +08:00
parent 51f3f917f9
commit cd03cdc44a
15 changed files with 2159 additions and 3 deletions
+60 -1
View File
@@ -36,7 +36,66 @@
"warehouse": "仓库",
"warehouse_items": "物品总览",
"work_order": "工单",
"calendar": "日历"
"calendar": "日历",
"aichat": "AI 对话"
},
"aichat": {
"title": "AI 对话",
"subtitle": "通过流式响应与 AI 助手对话,可显示后端工具执行过程。",
"empty_title": "开始一次 AI 对话",
"empty_hint": "输入问题后按 Enter 发送,Shift + Enter 换行。",
"input_placeholder": "输入消息...",
"send": "发送",
"clear": "清空",
"thinking": "正在思考...",
"streaming": "正在生成回复",
"tokens": "Token 用量",
"profile": "AI 接口",
"default_profile": "默认接口",
"tool_router": "工具路由",
"enter_hint": "Enter 发送,Shift + Enter 换行",
"error_prefix": "请求失败:"
},
"aiconfig": {
"title": "AI 配置",
"subtitle": "配置数据库中的 AI 接口、工具路由和工具列表。",
"reload": "重新加载",
"refresh_cache": "刷新缓存",
"save": "保存",
"enabled": "启用",
"profiles": "AI 接口 Profiles",
"add_profile": "添加接口",
"remove": "删除",
"active": "默认接口",
"name": "名称",
"api_key": "API Key",
"api_key_keep": "已配置,留空保留原密钥",
"base_url": "Base URL",
"model": "模型",
"timeout": "超时(秒)",
"max_tokens": "最大 Token",
"system_prompt": "系统提示词",
"tool_router": "工具路由",
"router_profile": "路由接口",
"none": "不指定",
"tools": "工具",
"add_tool": "添加工具",
"description": "描述",
"load_failed": "加载 AI 配置失败",
"save_success": "AI 配置已保存",
"save_failed": "保存 AI 配置失败",
"refresh_success": "AI 配置缓存已刷新",
"refresh_failed": "刷新 AI 配置缓存失败",
"error_profile_required": "至少需要一个 AI 接口",
"error_profile_name_required": "接口名称不能为空",
"error_profile_name_duplicate": "接口名称不能重复",
"error_active_profile_required": "启用 AI 时默认接口必须配置 Base URL 和模型",
"error_api_key_required": "启用 AI 时默认接口必须配置 API Key",
"error_timeout": "超时必须是正整数",
"error_max_tokens": "最大 Token 必须是正整数",
"error_router_profile": "工具路由接口必须来自现有接口列表",
"error_tool_name_required": "工具名称不能为空",
"error_tool_name_duplicate": "工具名称不能重复"
},
"tagadder": {
"not_fund_item": "没有找到匹配项",