Skip to content

fix(transcription): preserve explicit zero token usage#726

Open
Gujiassh wants to merge 3 commits intocrmne:mainfrom
Gujiassh:fix/openai-transcription-zero-tokens-clean
Open

fix(transcription): preserve explicit zero token usage#726
Gujiassh wants to merge 3 commits intocrmne:mainfrom
Gujiassh:fix/openai-transcription-zero-tokens-clean

Conversation

@Gujiassh
Copy link
Copy Markdown

Summary

  • preserve explicit zero-valued usage tokens in OpenAI transcription responses instead of falling back to alternate fields
  • keep the existing fallback behavior when only prompt/completion token counts are present
  • add focused regression coverage for both response shapes

Testing

  • bundle exec rspec spec/ruby_llm/providers/open_ai/transcription_spec.rb

Gujiassh and others added 3 commits March 29, 2026 19:56
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…ion-zero-tokens-clean

# Conflicts:
#	spec/ruby_llm/generators/chat_ui_generator_spec.rb
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.

1 participant