feat: 接入聊天历史界面与外链会话恢复

- 新增管理端与用户端聊天历史接口和页面

- 外链聊天支持访问令牌登录、身份保活与当前会话恢复

- 聊天执行链路切到统一 runtime 与 chatlog 查询接口
This commit is contained in:
2026-04-05 11:37:25 +08:00
parent 25e80433a5
commit a4f75a5e4c
48 changed files with 3724 additions and 972 deletions

View File

@@ -17,6 +17,9 @@
"notConfigured": "NotConfigured",
"chatPublishBaseUrlMissing": "Publish base URL is not configured. Please set it in system settings first.",
"chatExternalLink": "Chat External Link",
"chatAccessToken": "Access Token",
"chatAccessTokenPlaceholder": "Optional. Selected links will include the token",
"chatAccessTokenHint": "Only enabled access tokens with public-api chat permission are listed. After selection, copied links and iframe code will automatically include the token.",
"iframeEmbedCode": "Iframe Embed Code",
"copyLink": "Copy Link",
"copyIframeCode": "Copy Code",
@@ -36,6 +39,7 @@
"publicChatLoading": "Initializing chat environment...",
"publicChatThinking": "Thinking...",
"publicChatInitError": "Initialization failed, please try again later",
"publicChatTokenInvalid": "The access token is invalid or expired",
"publicChatAssistantReply": "Assistant Reply",
"publicChatToolCalling": "Calling tool",
"publicChatToolDone": "Tool completed",

View File

@@ -17,6 +17,9 @@
"notConfigured": "未配置",
"chatPublishBaseUrlMissing": "未配置发布域名,请先到系统设置中配置",
"chatExternalLink": "聊天外链",
"chatAccessToken": "访问令牌",
"chatAccessTokenPlaceholder": "可选,选择后外链将携带访问令牌",
"chatAccessTokenHint": "仅展示已启用且具备 public-api 聊天权限的访问令牌。选中后,复制链接和 iframe 代码会自动附带该令牌。",
"iframeEmbedCode": "iframe 嵌入代码",
"copyLink": "复制链接",
"copyIframeCode": "复制代码",
@@ -36,6 +39,7 @@
"publicChatLoading": "正在初始化聊天环境...",
"publicChatThinking": "思考中...",
"publicChatInitError": "初始化失败,请稍后重试",
"publicChatTokenInvalid": "访问令牌无效或已过期",
"publicChatAssistantReply": "助手回复",
"publicChatToolCalling": "工具调用中",
"publicChatToolDone": "工具已返回",