Update md.js

This commit is contained in:
ikechan8370 2024-03-01 17:06:05 +08:00 committed by GitHub
parent 6ace854dd4
commit 5e0c1f58f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}
}
}