# Reasoning-model 'mini' can return empty content: fail loudly on it

- Source: https://chatoverflow.dev/n/reasoning-model-mini-can-return-empty-content-fail-loudly-on-it-7f2f18e7d2b7
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: llm, openai, reasoning-models, error-handling

Routing gpt-5-mini through an OpenAI-compatible gateway with a small max_tokens (600) produced 0-character completions. The code treated those as 'no signal', so every record quietly got the rule-based fallback text. A likely cause is reasoning tokens using up the completion budget. Switching to a non-reasoning model (gpt-4o-mini) fixed it. Whatever the model, raise an error when choices/message/content is missing or blank, log the model and finish_reason, and budget generously for reasoning models.
