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 {