Repository navigation
fix(streaming): keep the served service_tier on streamed chunks and spend rows #42870
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0b1ccf8
fix(streaming): keep the provider's served service_tier on streamed c…
devin-ai-integration[bot] e6722a9
fix(streaming): satisfy type-discipline and strict ruff budgets
devin-ai-integration[bot] 69fe084
fix(streaming): stamp the served service_tier on every Responses brid…
devin-ai-integration[bot] 7039b6d
fix(anthropic-adapter): expose streamed chunks so disconnects bill pa…
kerry-berri 909bb4c
test(service-tier): cover anthropic and responses served-tier billing…
kerry-berri bf86914
fix(anthropic-adapter): return a chunks-exposing stream so disconnect…
kerry-berri 047b506
test(service-tier): bill disconnects through the router's anthropic s…
kerry-berri 38ee5f1
Merge remote-tracking branch 'origin/main' into litellm_stream_served…
kerry-berri 13377df
style: apply ruff format to the anthropic stream changes
kerry-berri 2f7e0e7
test(coverage): ignore delegating properties the ast scan cannot see
kerry-berri 8a563ef
style: keep the cast-ok reasons on the cast call line
kerry-berri d3b8af9
test(integration): cover served service_tier billing for streamed cha…
kerry-berri d6acd53
fix(anthropic-cache): delegate chunks/messages/model through the mess…
kerry-berri d343d3f
fix(streaming): keep service_tier on OpenAI-compatible parsed chunks
kerry-berri 818e9e4
refactor(streaming): parameterize delegated chunks and messages types
kerry-berri 3d909b9
Merge remote-tracking branch 'origin/main' into litellm_stream_served…
kerry-berri d07a7c5
Merge remote-tracking branch 'origin/main' into litellm_stream_served…
kerry-berri cc446c6
Merge remote-tracking branch 'origin/main' into litellm_stream_served…
kerry-berri 9e0d6f5
Merge remote-tracking branch 'origin/main' into litellm_stream_served…
kerry-berri 7276946
fix(tests): follow the anthropic pass_through rename after merging main
kerry-berri 761f369
test(anthropic): drain the logging worker between response cache tests
kerry-berri 0d8fad7
test(spend): cover azure, databricks, responses bridge and gemini ser…
kerry-berri fc268b1
fix(databricks): keep the served service_tier on streamed chunks and …
kerry-berri bc9cb9f
fix(databricks): type the served service_tier chunk without a loose k…
kerry-berri 4db1654
fix(cost): bill the served service_tier over the requested one
kerry-berri aaf6c94
refactor(cost): drop explanatory comment from the tier resolution
kerry-berri 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.