fix: xh 4.0

This commit is contained in:
ikechan8370 2024-06-27 15:25:04 +08:00
parent b1eff1700e
commit cc90e38ba8

View file

@ -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 = []
// 设定
@ -460,7 +460,7 @@ export default class XinghuoClient {
images
}
} else {
throw new Error('星火模式错误')
throw new Error('未知的模式' + Config.xhmode)
}
}