ai proxy support passthrough path when api name is unknown (#1754)

This commit is contained in:
澄潭
2025-02-13 21:22:43 +08:00
committed by GitHub
parent 7272eff8b6
commit 2dbde1833f
28 changed files with 24 additions and 109 deletions

View File

@@ -49,9 +49,6 @@ func (g *groqProvider) GetProviderType() string {
}
func (g *groqProvider) OnRequestHeaders(ctx wrapper.HttpContext, apiName ApiName, log wrapper.Log) error {
if !g.config.isSupportedAPI(apiName) {
return errUnsupportedApiName
}
g.config.handleRequestHeaders(g, ctx, apiName, log)
return nil
}