适配星火v3

This commit is contained in:
zyc404 2023-10-25 22:15:24 +08:00
parent e0054521d3
commit 32cc6a4e94
2 changed files with 6 additions and 0 deletions

View file

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

View file

@ -90,6 +90,8 @@ export default class XinghuoClient {
let APILink = '/v1.1/chat'
if (Config.xhmode == 'apiv2') {
APILink = '/v2.1/chat'
} else if (Config.xhmode == 'apiv3') {
APILink = '/v3.1/chat'
}
const date = new Date().toGMTString()
const algorithm = 'hmac-sha256'