From 257135f676832bf4228e59504159502105f7e719 Mon Sep 17 00:00:00 2001 From: Martial BE Date: Mon, 6 Nov 2023 15:33:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20channel=20test=20url=20err?= =?UTF-8?q?or?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/channel-test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/channel-test.go b/controller/channel-test.go index 920f2be5..c5d4d26c 100644 --- a/controller/channel-test.go +++ b/controller/channel-test.go @@ -49,7 +49,7 @@ func testChannel(channel *model.Channel, request ChatRequest) (err error, openai requestURL = channel.GetBaseURL() } - requestURL = getFullRequestURL(channel.GetBaseURL(), "/v1/chat/completions", channel.Type) + requestURL = getFullRequestURL(requestURL, "/v1/chat/completions", channel.Type) } jsonData, err := json.Marshal(request) if err != nil {