Bug report
We are using zai/glm-5.2-fast through Vercel AI Gateway with the Vercel AI SDK.
Despite explicitly setting reasoning: "none", the model still generates and streams reasoning content. Reasoning tokens are also reported in usage, increasing both latency and cost.
Environment
- Model:
zai/glm-5.2-fast - AI SDK:
ai@7.0.31 - Gateway package:
@ai-sdk/gateway@4.0.23 - Node.js: 20+
- Providers observed through Gateway: Wafer AI and Fireworks AI
Minimal reproduction
import { streamText } from 'ai'
const result = streamText({ model: 'zai/glm-5.2-fast', prompt: 'Solve a moderately complex problem and explain the answer.', reasoning: 'none', providerOptions: { gateway: { caching: 'auto', }, },})
for await (const part of result.fullStream) { console.log(part)}
console.log(await result.usage)Expected behavior
With reasoning: "none":
- The model should run with thinking/reasoning disabled.
- No reasoning parts or reasoning deltas should be returned.
reasoningTokensshould be zero or absent.- Latency and billing should reflect non-reasoning generation.
Actual behavior
- Reasoning parts are streamed.
- The model visibly performs an extended reasoning phase before answering.
- Usage reports reasoning tokens.
- The behavior occurs when Gateway routes the model through both Wafer AI and Fireworks AI.
- The option appears to be silently ignored rather than rejected as unsupported.
Impact
This makes it impossible to control the latency and cost of agent requests. These agents perform many tool-calling steps, so unexpected reasoning substantially increases response time and token usage.