A recent change in how Alibaba Group's Qwen4-Max-Preview model handles token limits has led to unexpected empty replies. Previously, `max_tokens` primarily capped the generated answer, but the model now uses this limit for both the reasoning process and the final output. This means the model can consume its entire token budget on thinking, leaving no room for an answer, even when the API returns a successful HTTP 200 status. Developers integrating with this model, particularly through platforms like AIHubMix, need to adjust their token limits or reasoning settings to accommodate this change, with Alibaba recommending the use of `max_completion_tokens` for new integrations. AI
IMPACT Developers using Qwen4-Max-Preview must adjust token settings to avoid empty responses due to changes in how reasoning and output tokens are counted.
RANK_REASON The item discusses a specific technical issue and its resolution for a particular model and platform, rather than a general release or significant industry event.
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →