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