| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| README.md | ||
| api_type.go | ||
| azure.go | ||
| cache_key.go | ||
| channel.go | ||
| context_key.go | ||
| endpoint_type.go | ||
| env.go | ||
| finish_reason.go | ||
| midjourney.go | ||
| multi_key_mode.go | ||
| setup.go | ||
| task.go |
🛡 ️ fix: prevent OOM on large/decompressed requests; skip heavy prompt meta when token count is disabled Clamp request body size (including post-decompression) to avoid memory exhaustion caused by huge payloads/zip bombs, especially with large-context Claude requests. Add a configurable `MAX_REQUEST_BODY_MB` (default `32`) and document it. - Enforce max request body size after gzip/br decompression via `http.MaxBytesReader` - Add a secondary size guard in `common.GetRequestBody` and cache-safe handling - Return **413 Request Entity Too Large** on oversized bodies in relay entry - Avoid building large `TokenCountMeta.CombineText` when both token counting and sensitive check are disabled (use lightweight meta for pricing) - Update READMEs (CN/EN/FR/JA) with `MAX_REQUEST_BODY_MB` - Fix a handful of vet/formatting issues encountered during the change - `go test ./...` passes
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| README.md | Loading commit data... | |
| api_type.go | Loading commit data... | |
| azure.go | Loading commit data... | |
| cache_key.go | Loading commit data... | |
| channel.go | Loading commit data... | |
| context_key.go | Loading commit data... | |
| endpoint_type.go | Loading commit data... | |
| env.go | Loading commit data... | |
| finish_reason.go | Loading commit data... | |
| midjourney.go | Loading commit data... | |
| multi_key_mode.go | Loading commit data... | |
| setup.go | Loading commit data... | |
| task.go | Loading commit data... |