修复bug和旧代码清理 (#553)

* fix: 修复星火api上下文

* 将无星火ck的情况降低为warn

* feat: 添加星火设定自定义代码功能

* 修复星火api模式的一些问题

* 修复导出配置问题

* feat:添加工具箱快捷登录接口

* 添加工具箱快捷登录指令

* 阻止群聊使用快捷登录

* 添加Azure配置支持,修复重复的配置项冲突

* 移除旧版本渲染和新版本帮助

* 添加工具箱

* 更新工具箱替换原有后台

* 更新工具箱适配代码
This commit is contained in:
HalcyonAlcedo 2023-09-08 12:28:02 +08:00 committed by GitHub
parent 043b80ddd4
commit bf761c24da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
183 changed files with 1206 additions and 7675 deletions

View file

@ -1,6 +1,12 @@
{
"blockWords": ["屏蔽词1", "屏蔽词b"],
"promptBlockWords": ["屏蔽词1", "屏蔽词b"],
"blockWords": [
"屏蔽词1",
"屏蔽词b"
],
"promptBlockWords": [
"屏蔽词1",
"屏蔽词b"
],
"imgOcr": true,
"defaultUsePicture": false,
"defaultUseTTS": false,
@ -13,14 +19,12 @@
"toggleMode": "at",
"quoteReply": true,
"showQRCode": true,
"cacheUrl": "https://content.alcedogroup.com",
"cacheEntry": false,
"apiKey": "",
"openAiBaseUrl": "https://mondstadt.d201.eu.org/v1",
"OpenAiPlatformRefreshToken": "",
"openAiForceUseReverse": false,
"azureDeploymentName":"",
"azureUrl":"",
"azureDeploymentName": "",
"azureUrl": "",
"drawCD": 30,
"model": "",
"temperature": 0.8,
@ -33,7 +37,7 @@
"sydneyBrainWashStrength": 15,
"sydneyBrainWashName": "Sydney",
"sydneyMood": false,
"sydneyMoodTip": "Your response should be divided into two parts, namely, the text and your mood. The mood available to you can only include: blandness, happy, shy, frustrated, disgusted, and frightened.All content should be replied in this format {"text": "", "mood": ""}.All content except mood should be placed in text, It is important to ensure that the content you reply to can be parsed by json.",
"sydneyMoodTip": "Your response should be divided into two parts, namely, the text and your mood. The mood available to you can only include: blandness, happy, shy, frustrated, disgusted, and frightened.All content should be replied in this format {\"text\": \"\", \"mood\": \"\"}.All content except mood should be placed in text, It is important to ensure that the content you reply to can be parsed by json.",
"enableSuggestedResponses": false,
"api": "https://pimon.d201.cn/backend-api/conversation",
"apiBaseUrl": "https://pimon.d201.cn/backend-api",
@ -68,8 +72,6 @@
"maxNumUserMessagesInConversation": 20,
"sydneyApologyIgnored": true,
"enforceMaster": false,
"oldview": false,
"newhelp": false,
"serverPort": 3321,
"serverHost": "",
"viewHost": "",