Skip to content

fix: robust token usage normalization for OpenAI-compatible providers#649

Open
BingqingLyu wants to merge 1 commit into
mainfrom
fork-pr-45535-fix-usage-normalization
Open

fix: robust token usage normalization for OpenAI-compatible providers#649
BingqingLyu wants to merge 1 commit into
mainfrom
fork-pr-45535-fix-usage-normalization

Conversation

@BingqingLyu

@BingqingLyu BingqingLyu commented Apr 27, 2026

Copy link
Copy Markdown
Owner

Fixes token usage being reported as 0 for Alibaba Bailian and other OpenAI-compatible providers that may return both input_tokens: 0 and prompt_tokens: N.

Also adds missing prompt_tokens and completion_tokens support to the CLI runner usage helper.

Fixes openclaw#45038
Fixes openclaw#45061

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

Labels

None yet

Projects

None yet

1 participant