mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
Update md.js
This commit is contained in:
parent
6ace854dd4
commit
5e0c1f58f6
1 changed files with 6 additions and 2 deletions
|
|
@ -15,7 +15,11 @@ export class ChatGPTMarkdownHandler extends plugin {
|
|||
|
||||
async mdHandler (e, options, reject) {
|
||||
const { content, prompt, use } = options
|
||||
let md = `> ${prompt}\n\n---\n${content}\n\n---\n*当前模式:${use}*`
|
||||
return md
|
||||
if (cfg.bot.global_md || e.adapter === 'shamrock') {
|
||||
let md = `> ${prompt}\n\n---\n${content}\n\n---\n*当前模式:${use}*`
|
||||
return md
|
||||
} else {
|
||||
return content
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue