🐛 fix channel test url error

This commit is contained in:
Martial BE 2023-11-06 15:33:11 +08:00
parent 84784ffccc
commit 257135f676
No known key found for this signature in database
GPG Key ID: D06C32DF0EDB9084

View File

@ -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 {