Repository navigation
1.26.0-s.3 - #4082
Merged
Merged
1.26.0-s.3#4082
Conversation
Member
- Add the redirect type back
- Add the redirect type back
- Overwrite non-passed values so moving targets don't get old values
- Jit mode default false
- fix(ai-gateway): compare budget windows in seconds so period budgets enforce
- fix(ai-gateway): read Bedrock invoke-with-response-stream usage from base64 chunks
- Rate limit header auth attempts
- Only read niceId and orgId from route params in access checks
- Require a target's site to be in the same org
- Block duplicate hostnames on non-inference resources
- Leave OIDC client credentials out of the internal IdP route
- Strip cookies from AI gateway upstream requests
- Scope domain reads and rule deletes to their owner
- Rate limit user lookups per IP
- Check site access before adding an olm peer
- Get latest versions from the Fossorial API instead of GitHub
…enforce aiUsageRecords.createdAt is epoch seconds since e57826d, but sumUsageForBudget still compared it against a lower bound in epoch ms, so every budget except lifetime summed to 0. Convert the bound to seconds for usage queries, leaving windowStart in ms for aiBudgetBreachEvents. Sum model-scoped budgets per requested model in SQL instead of loading every row in the window into JS.
…base64 chunks
invoke-with-response-stream wraps each model event as {"bytes":"<base64>"} inside event-stream frames, so the usage fields never appear in clear text. extractUsage returned null and the pipeline fell back to estimating tokens over the base64, losing real counts and cache tokens. Decode the chunks before scanning.
miloschwartz
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.