Merge pull request #1940 from Blue-B/fix/claude-interleaved-thinking-amp-gzip-budget

fix(claude): enable interleaved-thinking beta, decode AMP error gzip, fix budget 400
This commit is contained in:
Luis Pater
2026-04-06 09:08:23 +08:00
committed by GitHub
4 changed files with 126 additions and 8 deletions

View File

@@ -108,11 +108,6 @@ func createReverseProxy(upstreamURL string, secretSource SecretSource) (*httputi
// Modify incoming responses to handle gzip without Content-Encoding
// This addresses the same issue as inline handler gzip handling, but at the proxy level
proxy.ModifyResponse = func(resp *http.Response) error {
// Only process successful responses
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
return nil
}
// Skip if already marked as gzip (Content-Encoding set)
if resp.Header.Get("Content-Encoding") != "" {
return nil