Skip to content

Commit

Permalink
fix: xh 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Jun 27, 2024
1 parent b1eff17 commit cc90e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/xinghuo/xinghuo.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export default class XinghuoClient {
let chatId = option?.chatId
let image = option?.image

if (Config.xhmode == 'api' || Config.xhmode == 'apiv2' || Config.xhmode == 'apiv3' || Config.xhmode == 'apiv3.5' || Config.xhmode == 'assistants') {
if (Config.xhmode == 'api' || Config.xhmode == 'apiv2' || Config.xhmode == 'apiv3' || Config.xhmode == 'apiv3.5' || Config.xhmode == 'assistants' || Config.xhmode == 'apiv4.0') {
if (!Config.xhAppId || !Config.xhAPISecret || !Config.xhAPIKey) throw new Error('未配置api')
let Prompt = []
// 设定
Expand Down Expand Up @@ -460,7 +460,7 @@ export default class XinghuoClient {
images
}
} else {
throw new Error('星火模式错误')
throw new Error('未知的模式' + Config.xhmode)
}
}

Expand Down

0 comments on commit cc90e38

Please sign in to comment.