fix: xh 4.0

This commit is contained in:
ikechan8370 2024-06-27 14:53:05 +08:00
parent 500b743390
commit b1eff1700e
3 changed files with 7 additions and 0 deletions

View file

@ -461,6 +461,7 @@ export function supportGuoba () {
{ label: '讯飞星火认知大模型V2.0', value: 'apiv2' },
{ label: '讯飞星火认知大模型V3.0', value: 'apiv3' },
{ label: '讯飞星火认知大模型V3.5', value: 'apiv3.5' },
{ label: '讯飞星火认知大模型V4.0', value: 'apiv4.0' },
{ label: '讯飞星火助手', value: 'assistants' }
]
}

View file

@ -738,6 +738,10 @@
"label": "讯飞星火认知大模型V3.5",
"value": "apiv3.5"
},
{
"label": "讯飞星火认知大模型V4.0",
"value": "apiv4.0"
},
{
"label": "讯飞星火助手",
"value": "assistants"

View file

@ -88,6 +88,8 @@ export default class XinghuoClient {
APILink = '/v3.1/chat'
} else if (Config.xhmode === 'apiv3.5') {
APILink = '/v3.5/chat'
} else if (Config.xhmode === 'apiv4.0') {
APILink = '/v4.0/chat'
}
const date = new Date().toGMTString()
const algorithm = 'hmac-sha256'