Repository navigation
fix(proxy): release budget reservation when a request is cancelled mid-flight #30519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Bytechoreographer
wants to merge
24
commits into
BerriAI:litellm_internal_staging
from
Bytechoreographer:litellm_budget_reservation_cancel_release
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
e58a561
Merge pull request #27906 from BerriAI/litellm_internal_staging
shin-berri a72414a
Merge pull request #28100 from BerriAI/litellm_internal_staging
yuneng-berri 79b4578
Merge pull request #28292 from BerriAI/litellm_internal_staging
yuneng-berri 35f6961
Merge pull request #28680 from BerriAI/litellm_internal_staging
yuneng-berri 06f6cfc
Merge pull request #28709 from BerriAI/litellm_internal_staging
yuneng-berri a021a5b
Merge pull request #29243 from BerriAI/litellm_internal_staging
yuneng-berri 5be0797
Merge pull request #29372 from BerriAI/litellm_internal_staging
yuneng-berri 521ddc3
fix(proxy): resolve managed video model ids for auth (#29545)
shivamrawat1 8373712
fix(key_generate): allow team members to create keys on org-scoped te…
milan-berri 2110b41
fix(vertex): strip output_config.effort for Vertex Claude models that…
mateo-berri ed04563
fix: passthrough endpoints duplicate logs (#29598)
mateo-berri 0aea62b
Merge pull request #29632 from BerriAI/litellm_cherrypick_1_88_0_rc2
mateo-berri 26e9689
fix(key_generate): exempt UI/CLI session tokens from the budget ceili…
yuneng-berri c2a0a6a
Merge pull request #29637 from BerriAI/litellm_cherrypick_1_88_0_rc3
mateo-berri c5d214c
fix(key_generate): harden GHSA-q775 session-token exemption against d…
mateo-berri 67428bd
Merge pull request #29639 from BerriAI/litellm_ghsa_q775_defaults_rc188
mateo-berri 3d00874
fix(proxy): match passthrough registry routes bare-to-bare with SERVE…
Sameerlite bde16ff
test(proxy): patch utils.get_server_root_path in passthrough auth tests
Sameerlite aa2deee
build(deps): bump pyjwt to 2.13.0 and ws override to 8.20.1
yuneng-berri f685f2f
Merge pull request #29987 from BerriAI/litellm_deps_pyjwt_ws_backport…
yuneng-berri b577372
chore(release): bump version to 1.88.1
yuneng-berri 9c117a5
Merge pull request #29989 from BerriAI/litellm_bump_version_1_88_1
yuneng-berri 5278206
feat(proxy): read cold-storage prompts back in the logs detail view
Bytechoreographer b7490e9
fix(proxy): release budget reservation when a request is cancelled mi…
Bytechoreographer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
High: Budget bypass on cancelled streams
A caller can start an expensive streaming request, receive generated chunks, then disconnect before the stream completes; this branch releases the reservation with
actual_cost=0.0, and the success cost callback never runs. Reconcile the generated partial stream cost on cancellation, or otherwise keep a bounded reservation/charge path for streams that have already produced output instead of unconditionally releasing it.