Update relay-xunfei.go

This commit is contained in:
Kyoku 2023-10-26 20:14:26 +02:00 committed by GitHub
parent 89d458b9cf
commit c02608644e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,6 +301,9 @@ func getXunfeiAuthUrl(c *gin.Context, apiKey string, apiSecret string) (string,
if apiVersion == "v2.1" {
domain = "generalv2"
}
if apiVersion == "v3.1" {
domain = "generalv3"
}
authUrl := buildXunfeiAuthUrl(fmt.Sprintf("wss://spark-api.xf-yun.com/%s/chat", apiVersion), apiKey, apiSecret)
return domain, authUrl
}