mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: xh 4.0
This commit is contained in:
parent
b1eff1700e
commit
cc90e38ba8
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue