From 33075743882ebe7689347fbab28129de758224be Mon Sep 17 00:00:00 2001 From: peng zhang Date: Tue, 1 Aug 2023 11:12:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20open-ai=20relayText=20=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E6=8B=BC=E6=8E=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/relay-text.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/relay-text.go b/controller/relay-text.go index ceac4103..2e4bd02e 100644 --- a/controller/relay-text.go +++ b/controller/relay-text.go @@ -102,7 +102,7 @@ func relayTextHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode { apiType = APITypeXunfei } baseURL := common.ChannelBaseURLs[channelType] - requestURL := c.Request.URL.String() + requestURL := c.Request.URL.Path if c.GetString("base_url") != "" { baseURL = c.GetString("base_url") }