mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 05:17:10 +00:00
feat: add switch for thinking content forward
This commit is contained in:
parent
43fb604742
commit
f05da98d37
3 changed files with 16 additions and 3 deletions
|
|
@ -1044,9 +1044,14 @@ export class chatgpt extends plugin {
|
|||
}
|
||||
})
|
||||
if (thinking) {
|
||||
let thinkingForward = await common.makeForwardMsg(e, [thinking], '思考过程')
|
||||
this.reply(thinkingForward)
|
||||
if (Config.forwardReasoning) {
|
||||
let thinkingForward = await common.makeForwardMsg(e, [thinking], '思考过程')
|
||||
this.reply(thinkingForward)
|
||||
} else {
|
||||
logger.mark('思考过程', thinking)
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.enableSuggestedResponses && chatMessage.suggestedResponses) {
|
||||
this.reply(`建议的回复:\n${chatMessage.suggestedResponses}`)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,6 +151,12 @@ export function supportGuoba () {
|
|||
bottomHelpMessage: '仅建议gpt-4-32k和gpt-3.5-turbo-16k-0613开启,gpt-4-0613也可。开启后机器人可以群管、收发图片、发视频发音乐、联网搜索等。注意较费token。配合开启读取群聊上下文效果更佳',
|
||||
component: 'Switch'
|
||||
},
|
||||
{
|
||||
field: 'forwardReasoning',
|
||||
label: '是否转发思考过程',
|
||||
bottomHelpMessage: 'OpenAI的o系列、deepseek的r系列等思考模型的思考过程是否以转发形式发出。默认开启',
|
||||
component: 'Switch'
|
||||
},
|
||||
{
|
||||
field: 'openAiBaseUrl',
|
||||
label: 'OpenAI API服务器地址',
|
||||
|
|
|
|||
|
|
@ -215,9 +215,11 @@ const defaultConfig = {
|
|||
// 伪人额外设定
|
||||
bymPreset: '',
|
||||
bymMode: 'gemini',
|
||||
// 思考过程转发
|
||||
forwardReasoning: true,
|
||||
geminiEnableGoogleSearch: false,
|
||||
geminiEnableCodeExecution: false,
|
||||
version: 'v2.8.2'
|
||||
version: 'v2.8.3'
|
||||
}
|
||||
const _path = process.cwd()
|
||||
let config = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue