feat: Bot发布增加外链聊天界面

This commit is contained in:
2026-03-03 16:36:27 +08:00
parent 29f82ed1f0
commit 80409259c3
12 changed files with 2152 additions and 30 deletions

View File

@@ -12,8 +12,39 @@
"enableDeepThinking": "EnableDeepThinking",
"publish": "Publish",
"postToWeChatOfficialAccount": "PostToWeChatOfficialAccount",
"publishExternalLink": "Publish External Chat Link",
"configured": "Configured",
"notConfigured": "NotConfigured",
"chatPublishBaseUrlMissing": "Publish base URL is not configured. Please set it in system settings first.",
"chatExternalLink": "Chat External Link",
"iframeEmbedCode": "Iframe Embed Code",
"copyLink": "Copy Link",
"copyIframeCode": "Copy Code",
"openPublicPage": "Open Page",
"allowAnonymousAccess": "Allow Anonymous Access",
"embedUsage": "Embed Notes",
"embedUsageTip1": "If embedding fails, check whether gateway/Nginx sets X-Frame-Options or strict Content-Security-Policy.",
"embedUsageTip2": "Embed only in trusted sites and combine with rate limiting.",
"publicPageBlocked": "Anonymous access is disabled for this bot",
"publicPageBlockedTip": "Enable anonymous access in publish settings before using external links.",
"publicChatTitle": "Public Chat Assistant",
"publicChatSubtitle": "Powered by EasyFlow",
"publicChatPlaceholder": "Type your question and press Enter to send",
"publicChatInputHint": "Shift + Enter for newline",
"publicChatSend": "Send",
"publicChatStop": "Stop",
"publicChatLoading": "Initializing chat environment...",
"publicChatThinking": "Thinking...",
"publicChatInitError": "Initialization failed, please try again later",
"publicChatAssistantReply": "Assistant Reply",
"publicChatToolCalling": "Calling tool",
"publicChatToolDone": "Tool completed",
"publicChatToolUnknown": "Unnamed tool",
"publicChatToolExpand": "Expand",
"publicChatToolCollapse": "Collapse",
"publicChatCopySuccess": "Copied",
"publicChatCopyFail": "Copy failed",
"basicInfo": "Basic Info",
"placeholder": {
"welcome": "Please enter welcome message",
"prompt": "You are an AI assistant. Please provide clear and accurate answers based on the user's questions.",
@@ -23,5 +54,6 @@
"aiOptimization": "AI Optimization",
"weChatOfficialAccountConfiguration": "WeChat Official Account configuration",
"aiOptimizedPrompts": "AI Optimized Prompts",
"chatAssistant": "Chat Assistant"
"chatAssistant": "Chat Assistant",
"publicChatStopped": "Generation stopped"
}

View File

@@ -6,5 +6,7 @@
"basic": "BasicInformation",
"updatePwd": "UpdatePassword",
"systemAIFunctionSettings": "System AI Function Settings",
"note": "Note: This config only applies to system AI features, not [Chat Assistant]."
"note": "Note: This config only applies to system AI features, not [Chat Assistant].",
"chatPublishBaseUrl": "Chat Publish Base URL",
"chatPublishBaseUrlPlaceholder": "For example: https://your-admin-domain"
}

View File

@@ -12,8 +12,39 @@
"enableDeepThinking": "是否启用深度思考",
"publish": "发布",
"postToWeChatOfficialAccount": "发布到微信公众号",
"publishExternalLink": "发布外链聊天页",
"configured": "已配置",
"notConfigured": "未配置",
"chatPublishBaseUrlMissing": "未配置发布域名,请先到系统设置中配置",
"chatExternalLink": "聊天外链",
"iframeEmbedCode": "iframe 嵌入代码",
"copyLink": "复制链接",
"copyIframeCode": "复制代码",
"openPublicPage": "打开页面",
"allowAnonymousAccess": "允许匿名访问",
"embedUsage": "嵌入说明",
"embedUsageTip1": "若无法嵌入,请检查网关/Nginx 是否设置 X-Frame-Options 或严格 Content-Security-Policy。",
"embedUsageTip2": "建议仅在可信站点嵌入,并结合限流策略使用。",
"publicPageBlocked": "该助手未开放匿名访问",
"publicPageBlockedTip": "请在发布设置中开启“允许匿名访问”后再通过外链访问。",
"publicChatTitle": "公开聊天助手",
"publicChatSubtitle": "由 EasyFlow 驱动",
"publicChatPlaceholder": "输入你的问题,按 Enter 发送",
"publicChatInputHint": "Shift + Enter 换行",
"publicChatSend": "发送",
"publicChatStop": "停止",
"publicChatLoading": "正在初始化聊天环境...",
"publicChatThinking": "思考中...",
"publicChatInitError": "初始化失败,请稍后重试",
"publicChatAssistantReply": "助手回复",
"publicChatToolCalling": "工具调用中",
"publicChatToolDone": "工具已返回",
"publicChatToolUnknown": "未命名工具",
"publicChatToolExpand": "展开",
"publicChatToolCollapse": "收起",
"publicChatCopySuccess": "复制成功",
"publicChatCopyFail": "复制失败",
"basicInfo": "基础信息",
"placeholder": {
"welcome": "请输入欢迎语",
"prompt": "你是一个AI助手请根据用户的问题给出清晰、准确的回答。",
@@ -23,5 +54,6 @@
"aiOptimization": "AI优化",
"weChatOfficialAccountConfiguration": "微信公众号配置",
"aiOptimizedPrompts": "AI优化提示词",
"chatAssistant": "聊天助手"
"chatAssistant": "聊天助手",
"publicChatStopped": "已停止输出"
}

View File

@@ -6,5 +6,7 @@
"basic": "基本设置",
"updatePwd": "修改密码",
"systemAIFunctionSettings": "系统 AI 功能设置",
"note": "注意:此项配置,仅用于系统的 AI 功能,而非【聊天助手】。"
"note": "注意:此项配置,仅用于系统的 AI 功能,而非【聊天助手】。",
"chatPublishBaseUrl": "聊天外链发布域名",
"chatPublishBaseUrlPlaceholder": "例如https://your-admin-domain"
}