feat: sync remaining channel and relay updates
This commit is contained in:
@@ -33,6 +33,15 @@ func GetFullRequestURL(baseURL string, requestURL string, channelType int) strin
|
||||
fullRequestURL = fmt.Sprintf("%s%s", baseURL, strings.TrimPrefix(requestURL, "/openai/deployments"))
|
||||
}
|
||||
}
|
||||
|
||||
if channelType == constant.ChannelTypeCodexCLIProxy ||
|
||||
channelType == constant.ChannelTypeGeminiCLIProxy {
|
||||
trimmedRequestURL := strings.TrimPrefix(requestURL, "/v1")
|
||||
if trimmedRequestURL == "" {
|
||||
trimmedRequestURL = "/"
|
||||
}
|
||||
fullRequestURL = fmt.Sprintf("%s%s", baseURL, trimmedRequestURL)
|
||||
}
|
||||
return fullRequestURL
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user