mirror of
https://github.com/alibaba/higress.git
synced 2026-05-11 14:27:27 +08:00
ai proxy support passthrough path when api name is unknown (#1754)
This commit is contained in:
@@ -52,9 +52,6 @@ func (m *githubProvider) GetProviderType() string {
|
||||
}
|
||||
|
||||
func (m *githubProvider) OnRequestHeaders(ctx wrapper.HttpContext, apiName ApiName, log wrapper.Log) error {
|
||||
if !m.config.isSupportedAPI(apiName) {
|
||||
return errUnsupportedApiName
|
||||
}
|
||||
m.config.handleRequestHeaders(m, ctx, apiName, log)
|
||||
// Delay the header processing to allow changing streaming mode in OnRequestBody
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user