fix: xAi requestUrl

This commit is contained in:
liusanp authored and creamlike1024 committed 2025-05-08 23:19:34 +08:00
1 parent 2e73714f49
commit 89d40bbbf3
1 file changed
+1 -1
+1 -1
View File
@@ -41,7 +41,7 @@ func (a *Adaptor) Init(info *relaycommon.RelayInfo) {
}
func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {
return fmt.Sprintf("%s/v1/chat/completions", info.BaseUrl), nil
return relaycommon.GetFullRequestURL(info.BaseUrl, info.RequestURLPath, info.ChannelType), nil
}
func (a *Adaptor) SetupRequestHeader(c *gin.Context, req *http.Header, info *relaycommon.RelayInfo) error {