-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/databricks gateway connector #14
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
23 commits
Select commit
Hold shift + click to select a range
a4c4ad3
Strip hyphenated version dates so current OpenAI models can be priced
anassg-lago 2265195
Catch nested usage drift, account for unexplained totals, accept a pr…
anassg-lago fe1ce43
Add Databricks AI Gateway usage adapter
anassg-lago b7737cf
Add Databricks usage reader and one-call backfill
anassg-lago d85ad71
Bill Databricks-hosted models as token counts, not as a price failure
anassg-lago 27dbe81
Document the Databricks AI Gateway connector
anassg-lago acc7d3c
Stop test_overflow_drops_oldest_at_exact_boundary racing the queue wo…
anassg-lago 8c4ffa9
Bill Mistral prompt-cached calls once, not twice
anassg-lago b893aa9
Merge main into the Databricks connector branch
anassg-lago 03e81d0
Stop the queue respinning after isolation, and drain before refreshin…
anassg-lago 217fa0e
Compact the swept fixtures 151 -> 38, and scrub personal data from th…
anassg-lago 9e22961
Raise on a failed result chunk instead of billing a short window
anassg-lago 5d97549
Key gateway cache de-overlap on the surface, not the vendor name
anassg-lago 2254a48
Stamp backfilled events with the source row's time, not the run's
anassg-lago f9179d9
Read one Databricks window, floored, excluding the open hour
anassg-lago 15d1433
Keep failed Databricks calls out of the BYOK join index
anassg-lago a124962
Report the backfill's unbilled buckets instead of returning success
anassg-lago a6dc422
Read only the Databricks columns the billing extraction uses
anassg-lago c7c1fdc
Surface unknown `token_details` keys instead of dropping them
anassg-lago 7acad14
Record why the provider hint cannot be forgotten here
anassg-lago 74b93b9
Skip negative spend rows, and reject a config passed as the api key
anassg-lago 0172754
Classify a 4xx by whether the batch is what is wrong
anassg-lago 4a144b4
Report a discarded api_url, sweep gateway drift, and respect the pric…
anassg-lago 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
Large diffs are not rendered by default.
Oops, something went wrong.
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.
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.
The documented return shape omits
deferred, which this PR makes the primary billing-gap signal.The snippet prints
# {'cost': 60, 'tokens': 47, 'skipped': 0}while the implementation returns a fourth key, andbackfill_databricks's own docstring says "a run with both at 0 is the only one that billed the whole window".A caller writing the automated reconciliation check this counter exists for would assert on the three documented keys and never look at the fourth — which is precisely the "cost alone dropping from 66 to 12 is not something an automated caller can read as a gap" failure
deferredwas added to fix.