fix(count-tokens): retry after transient counting failures by rudycelekli · Pull Request #34 · tigerless-labs/cost-xray · GitHub
Skip to content

fix(count-tokens): retry after transient counting failures - #34

Merged
faj-design5260 merged 1 commit into
tigerless-labs:masterfrom
rudycelekli:fix/cx-retry-count-failures
Oct 28, 2026
Merged

faj-design5260 merged 1 commit into
tigerless-labs:masterfrom
rudycelekli:fix/cx-retry-count-failures

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

Unavailable count-token responses are cached indefinitely as None. Cache successful results only so a later analysis can recover after a transient service failure.

Validation: the added regression fails on upstream 069733f and passes on this branch. The complete isolated suite passes (225 passed, 2 skipped in 9.82s); Ruff 0.16.10 and git diff --check pass.

Python3.13/macOS with isolated credential/config fixtures, real installed dependencies and Ruff0.16.10. No live provider calls; hosted Python3.10/3.11/3.12 not yet verified.

@rudycelekli
rudycelekli marked this pull request as ready for review October 9, 2026 22:45
@faj-design5260
faj-design5260 merged commit a0a6bb5 into tigerless-labs:master Oct 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants