mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
适配星火v3
This commit is contained in:
parent
e0054521d3
commit
32cc6a4e94
2 changed files with 6 additions and 0 deletions
|
|
@ -718,6 +718,10 @@
|
||||||
"label": "讯飞星火认知大模型V2.0",
|
"label": "讯飞星火认知大模型V2.0",
|
||||||
"value": "apiv2"
|
"value": "apiv2"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "讯飞星火认知大模型V3.0",
|
||||||
|
"value": "apiv3"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "讯飞星火助手",
|
"label": "讯飞星火助手",
|
||||||
"value": "assistants"
|
"value": "assistants"
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,8 @@ export default class XinghuoClient {
|
||||||
let APILink = '/v1.1/chat'
|
let APILink = '/v1.1/chat'
|
||||||
if (Config.xhmode == 'apiv2') {
|
if (Config.xhmode == 'apiv2') {
|
||||||
APILink = '/v2.1/chat'
|
APILink = '/v2.1/chat'
|
||||||
|
} else if (Config.xhmode == 'apiv3') {
|
||||||
|
APILink = '/v3.1/chat'
|
||||||
}
|
}
|
||||||
const date = new Date().toGMTString()
|
const date = new Date().toGMTString()
|
||||||
const algorithm = 'hmac-sha256'
|
const algorithm = 'hmac-sha256'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue