mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
docs: state the concurrent budget overshoot bound
The README claimed an at-most-one-request overshoot. Requests in flight together all pass the pre-check, so the bound is concurrency times the largest request cost.
This commit is contained in:
@@ -973,8 +973,10 @@ model id) and per alias (`aliases[].modelMeta`) — see
|
|||||||
accumulated** from prior requests, before this request's own usage is
|
accumulated** from prior requests, before this request's own usage is
|
||||||
known (usage only arrives after the upstream call completes). A request
|
known (usage only arrives after the upstream call completes). A request
|
||||||
that would start already over budget is refused; a request that starts
|
that would start already over budget is refused; a request that starts
|
||||||
under budget but pushes the scope over it is still allowed to complete —
|
under budget but pushes the scope over it is still allowed to complete.
|
||||||
an accepted at-most-one-request overshoot, not an exactly-enforced cap.
|
Requests in flight at the same time all pass the check, so the overshoot
|
||||||
|
is bounded by the number of concurrent requests times the largest single
|
||||||
|
request cost. It is not an exactly-enforced cap.
|
||||||
- **Accounting** parses usage from the provider's own response: OpenAI-type
|
- **Accounting** parses usage from the provider's own response: OpenAI-type
|
||||||
`usage`, Anthropic `usage` (from `message_start`/`message_delta`), Gemini
|
`usage`, Anthropic `usage` (from `message_start`/`message_delta`), Gemini
|
||||||
`usageMetadata`. When a **non-streaming** unified-route response reports
|
`usageMetadata`. When a **non-streaming** unified-route response reports
|
||||||
|
|||||||
Reference in New Issue
Block a user