← Back to feed

Fix partial results on Usage API pagination errors (#3196)

L4 · DeveloperTutorials & GuidesOpenAI Cookbook (GitHub)· 10/19/2026

Essential fix for developers building robust API integrations who need accurate usage data collection.

AI Summary

OpenAI Cookbook fixes a bug in Usage API pagination code that could return partial results when handling HTTP errors.

Excerpt

Fix partial results on Usage API pagination errors (#3196)

Read Original
0 upvotes · 0 downvotes · 1 min read

Related Articles

L3 · BuilderTutorials & GuidesHacker News
Harness Engineering 101: The LLM is the brain, the harness is the body

A 16-chapter book teaches how to build AI agents from first principles using the 'LLM as brain, harness as body' framework with practical Python examples.

L3 · BuilderTutorials & GuidesHacker News
Tmux and Claude Code: Sessions, Send-Keys, and the Ceiling

Claude Code integrates with tmux to create persistent, scriptable coding agent sessions that survive terminal disconnections.

L4 · DeveloperTutorials & GuidesTowards Data Science
Can Conformal Prediction Take You from Accurate to Reliable Machine Learning?

Conformal prediction methods transform accurate ML models into reliably calibrated systems with quantified uncertainty bounds.

L3 · BuilderTutorials & GuidesTowards Data Science
Inferring the Host: A Bayesian Look at the Monty Hall Problem

A Bayesian analysis of the Monty Hall problem shows how observing a host's behavior can probabilistically determine the optimal strategy.

L3 · BuilderTutorials & GuidesTowards Data Science
Both Charts Are Right. So Why Do They Disagree?

Explains Simpson's paradox through statistical charts showing how combining data can reverse apparent trends.