From c02608644e4c19b9f8136d80cc3a13f85ed6397d Mon Sep 17 00:00:00 2001 From: Kyoku <42831708+Ninja-bytes@users.noreply.github.com> Date: Thu, 26 Oct 2023 20:14:26 +0200 Subject: [PATCH] Update relay-xunfei.go --- controller/relay-xunfei.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/relay-xunfei.go b/controller/relay-xunfei.go index cbaf38fe..5baad6a5 100644 --- a/controller/relay-xunfei.go +++ b/controller/relay-xunfei.go @@ -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 }