mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: xh 3.5
This commit is contained in:
parent
fc8bace2c5
commit
8ec1ee4c1e
1 changed files with 7 additions and 1 deletions
|
|
@ -178,7 +178,13 @@ export default class XinghuoClient {
|
|||
const wsUrl = Config.xhmode == 'assistants' ? Config.xhAssistants : await this.getWsUrl()
|
||||
if (!wsUrl) throw new Error('获取ws链接失败')
|
||||
let domain = 'general'
|
||||
if (Config.xhmode == 'apiv2') { domain = 'generalv2' } else if (Config.xhmode == 'apiv3') { domain = 'generalv3' }
|
||||
if (Config.xhmode == 'apiv2') {
|
||||
domain = 'generalv2'
|
||||
} else if (Config.xhmode == 'apiv3') {
|
||||
domain = 'generalv3'
|
||||
} else if (Config.xhmode == 'apiv3.5') {
|
||||
domain = 'generalv3.5'
|
||||
}
|
||||
// 编写消息内容
|
||||
const wsSendData = {
|
||||
header: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue