t0ng7u
c2ed76ddfd
🛡️ 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
2025-12-16 17:00:19 +08:00
Papersnake
766b6bc795
feat: add claude-opus-4-5-20251101
2025-11-25 10:53:01 +08:00
HynoR
87d72a50c9
chore: update aws claude 4.5 haiku model's information
2025-10-24 14:21:17 +08:00
CaIon
31e09b960f
refactor: aws
2025-10-15 16:44:33 +08:00
papersnake
112ab0b17c
feat: support claude-sonnet-4-5-20250929
2025-09-30 09:14:12 +08:00
huanghejian
a069d03ef7
feat: amazon nova model
2025-09-26 15:55:00 +08:00
huanghejian
5545e70a42
feat: amazon nova model
2025-09-26 15:32:59 +08:00
huanghejian
b10ed4b424
pref: support amazon nova
2025-09-11 12:17:16 +08:00
huanghejian
2d4ecaaf28
feat: amazon.nova-premier-v1:0
2025-09-11 10:01:54 +08:00
huanghejian
f795148c58
feat: support amazon nova
2025-09-10 20:30:00 +08:00
neotf
c9bcdc89f0
feat: add support for claude-opus-4-1 model and update ratios
2025-08-06 00:58:46 +08:00
daggeryu
0a7842e897
fix aws claude-sonnet-4-20250514
2025-05-24 01:21:14 +08:00
CaIon
eea5967e2c
feat: add support for new regions in Claude Sonnet 4 and Claude Opus 4 models in AWS constants
2025-05-23 21:11:00 +08:00
CaIon
3cc1a79449
feat: add new model entries for Claude Sonnet 4 and Claude Opus 4 across multiple components, including constants and cache settings
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2025-05-23 15:20:16 +08:00
neotf
ac9bd53098
feat: support AWS Model CrossRegion
2025-03-15 01:42:24 +08:00
1808837298@qq.com
c62276fcc4
feat: Add Claude 3.7 Sonnet model to AWS channel mapping
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2025-02-25 02:55:23 +08:00
papersnake
b485aae026
feat: add claude-3-5-haiku-20241022
2024-11-27 13:33:37 +08:00
1808837298@qq.com
6e3d8b5572
feat: update claude models
2024-10-24 00:17:23 +08:00
mgrsc
c2826de3a3
add aws claude-3-5-sonnet
2024-06-21 22:19:52 +08:00
CaIon
3721ed796c
feat: support aws claude
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
2024-04-23 11:44:40 +08:00