Fix share page whisper auth (#1161)

Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
This commit is contained in:
Archer
2024-04-09 21:38:47 +08:00
committed by GitHub
parent adfad8ff7f
commit 2991c07467
55 changed files with 466 additions and 251 deletions

View File

@@ -1,4 +1,4 @@
### FastGPT V4.7
### FastGPT V4.7.1
1. 新增 - 语音输入完整配置。支持选择是否打开语音输入(包括分享页面),支持语音输入后自动发送,支持语音输入后自动语音播放(流式)。
2. 新增 - Pptx 和 xlsx 文件读取。但所有文件读取都放服务端,会消耗更多的服务器资源,以及无法在上传时预览更多内容。

View File

@@ -33,7 +33,7 @@ function embedChatbot() {
ChatBtnDiv.draggable = false;
const iframe = document.createElement('iframe');
iframe.allow = 'fullscreen;microphone';
iframe.allow = '*';
iframe.referrerPolicy = 'no-referrer';
iframe.title = 'FastGPT Chat Window';
iframe.id = chatWindowId;

View File

@@ -230,7 +230,8 @@
"Amount": "{{amount}}{{unit}}"
},
"speech": {
"error tip": "Speech Failed"
"error tip": "Speech Failed",
"not support": "Your browser does not support voice input"
},
"system": {
"Commercial version function": "Commercial version special function",
@@ -250,7 +251,7 @@
},
"core": {
"Chat": "Chat",
"Chat test": "Chat test",
"Chat test": "Test",
"Max Token": "MaxTokens",
"Start chat": "Start chat",
"Total chars": "Total chars: {{total}}",
@@ -423,6 +424,7 @@
"Converting to text": "Converting to text...",
"Custom History Title": "Custom history title",
"Custom History Title Description": "If set to empty, chat history will be followed automatically.",
"Debug test": "Test",
"Exit Chat": "Exit",
"Failed to initialize chat": "Failed to initialize chat",
"Feedback Failed": "Feedback Failed",

View File

@@ -230,7 +230,8 @@
"Amount": "{{amount}}{{unit}}"
},
"speech": {
"error tip": "语音转文字失败"
"error tip": "语音转文字失败",
"not support": "您的浏览器不支持语音输入"
},
"system": {
"Commercial version function": "商业版特有功能",
@@ -250,7 +251,7 @@
},
"core": {
"Chat": "对话",
"Chat test": "测试对话",
"Chat test": "测试",
"Max Token": "单条数据上限",
"Start chat": "立即对话",
"Total chars": "总字数: {{total}}",
@@ -423,6 +424,7 @@
"Converting to text": "正在转换为文本...",
"Custom History Title": "自定义历史记录标题",
"Custom History Title Description": "如果设置为空,会自动跟随聊天记录。",
"Debug test": "调试预览",
"Exit Chat": "退出聊天",
"Failed to initialize chat": "初始化聊天失败",
"Feedback Failed": "提交反馈异常",
@@ -608,8 +610,7 @@
"success": "开始同步"
}
},
"training": {
}
"training": {}
},
"data": {
"Auxiliary Data": "辅助数据",
@@ -996,6 +997,7 @@
"Tool module": "工具",
"UnKnow Module": "未知模块",
"User guide": "用户引导",
"App system setting": "系统配置",
"http body placeholder": "与APIFox相同的语法",
"textEditor": "文本加工",
"textEditor intro": "可对固定或传入的文本进行加工后输出,非字符串类型数据最终会转成字符串类型。"