Skip to content

fix(kilocode): paid default router incorrectly reports zero cost - #129546

Merged
steipete merged 1 commit into
mainfrom
codex/qa-kilo-default-model-pricing-20260825
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-kilo-default-model-pricing-20260825

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where Kilo's paid default router was displayed as costing $0.0000 when its live model catalog returned a dynamic negative price sentinel, despite OpenClaw already having authoritative prices for that default model.

Why This Change Was Made

The provider-owned price conversion now applies the existing authoritative default-model rates only when that specific default model's dynamic input/output price is invalid or unavailable. Genuine free models remain free, unknown prices on other dynamic routers remain unknown, and cache-rate behavior is unchanged. Simplifying the converter removes five production lines.

User Impact

Usage estimates for the paid default Kilo router are accurate again without fabricating prices for other routers or changing legitimately free models.

Evidence

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete merged commit 3c23457 into main Aug 25, 2026
156 of 158 checks passed
@steipete
steipete deleted the codex/qa-kilo-default-model-pricing-20260825 branch August 25, 2026 20:27
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant