Skip to content

Fix OpenAI transcription zero token usage#704

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

Fix OpenAI transcription zero token usage#704
Gujiassh wants to merge 2 commits intocrmne:mainfrom
Gujiassh:fix/openai-transcription-zero-tokens

Conversation

@Gujiassh
Copy link

Summary

  • preserve explicit zero-valued transcription token usage fields instead of falling back to prompt/completion token keys
  • add focused provider coverage for both the zero-valued and fallback usage paths

Testing

  • bundle exec rspec spec/ruby_llm/providers/open_ai/transcription_spec.rb
  • bundle exec rubocop lib/ruby_llm/providers/openai/transcription.rb spec/ruby_llm/providers/open_ai/transcription_spec.rb

Gujiassh and others added 2 commits March 24, 2026 12:28
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
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