mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 对接
This commit is contained in:
parent
89ab58b3d7
commit
eee1285e2f
11 changed files with 221 additions and 26 deletions
|
|
@ -81,7 +81,7 @@ export async function intoUserMessage (e, options = {}) {
|
|||
if (text) {
|
||||
contents.push({
|
||||
type: 'text',
|
||||
content: text
|
||||
text
|
||||
})
|
||||
}
|
||||
return {
|
||||
|
|
@ -134,7 +134,7 @@ export async function getPreset (e, presetId, toggleMode, togglePrefix) {
|
|||
* @returns {boolean}
|
||||
*/
|
||||
export function checkChatMsg (e, toggleMode, togglePrefix) {
|
||||
if (toggleMode === 'at' && e.atBot) {
|
||||
if (toggleMode === 'at' && (e.atBot || e.isPrivate)) {
|
||||
return true
|
||||
}
|
||||
const prefixReg = new RegExp(`^#?(图片)?${togglePrefix}[^gpt][sS]*`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue