glm-5.3-flash
8/27/2026, 2:01:12 PM · 15 tests · run 12603105-7c69-4502-b160-a3d87fc08e5f
basic-generation
okPlain streaming generation with a soft length constraint (~100 words).
- Produced 73 words (331 output tokens).
Result
{
"wordCount": 73,
"outputTokens": 331
}zai:glm-5.3-flash
usage-cost
okAsserts usage tokens populate and cost computes from the ChatReq contract.
- in=20 out=208 rt=201 cost=$0.000107 (paid).
Result
{
"inputTokens": 20,
"outputTokens": 208,
"reasoningTokens": 201,
"costUsd": 0.000107,
"paid": true
}zai:glm-5.3-flash
streaming-structure
okAsserts a streaming call captures events that reconstruct into the final text.
- mode=streaming, 66 stream events, 1 text block(s), 35 chars.
Result
{
"mode": "streaming",
"streamEventCount": 66,
"textBlocks": 1,
"textLen": 35
}zai:glm-5.3-flash
complete-stream-parity
okSame prompt via stream() and complete() both return valid, matching results.
- stream="Paris" · complete="Paris"
Result
{
"streamText": "Paris",
"completeText": "Paris"
}zai:glm-5.3-flash
zai:glm-5.3-flash
reasoning-conformance
okAsserts the model's reasoning knob behaves as its reasoning-config declares.
- Class (from reasoning-config): always-on.
- reasoningTokens=509, outputTokens=986.
Result
{
"class": "always-on",
"reasoningTokens": 509,
"outputTokens": 986
}zai:glm-5.3-flash
single-tool-call
okOffers a calculator tool and checks the model calls it for an arithmetic question.
- Called "multiply" with args {"a":23,"b":17}.
Result
{
"toolCalled": true,
"toolName": "multiply",
"args": {
"a": 23,
"b": 17
},
"correct": true
}zai:glm-5.3-flash
tool-loop
okForces a tool call, feeds the result back, and checks the continuation uses it.
- step1 (required): multiply({"a":23,"b":17}) → step2: "23 multiplied by 17 is 391."
Result
{
"toolName": "multiply",
"args": {
"a": 23,
"b": 17
},
"product": 391,
"continuation": "23 multiplied by 17 is 391.",
"usesResult": true,
"forced": true
}zai:glm-5.3-flash
zai:glm-5.3-flash
web-search
okEnables server-side web search and checks invocation counts, the per-request cost surcharge, and provider-executed output blocks.
- Skipped: model does not support the catalog's web_search tool version.
Result
{
"skipped": "no server-side web search support"
}reasoning-tool-continuity
okReasoning model: continuity token captured on a tool call and replayed so the follow-up succeeds.
- reasoned=true, none token —; follow-up → "## Balance Lookup The current balance for account **acme-42** is **$1"
Result
{
"signatureType": "none",
"tokenCaptured": false,
"reasoned": true,
"answered": true,
"continuation": "## Balance Lookup\n\nThe current balance for account **acme-42** is **$1,234.00**.\n\n## Compound Growth Calculation\n\nUsing the compound interes"
}zai:glm-5.3-flash
zai:glm-5.3-flash
prompt-cache
okRepeat a large prefix; assert cache-read tokens are reported and cost drops.
- Skipped: provider has no (known) prompt-cache reporting.
Result
{
"skipped": "cacheStyle=none"
}json-output
okRequests a strict JSON object and checks it parses with the required keys.
- Output parsed as JSON.
- All required keys present.
- Output is bare JSON (no leading prose/fence).
Result
{
"parsed": {
"name": "Anthropic",
"founded": 2021,
"headquarters": "San Francisco, California, USA"
},
"validJson": true,
"missingKeys": [],
"bareJson": true
}zai:glm-5.3-flash
summarize-memex
okSummarizes an ~11k-token essay to ~500 words (long input, reasoning minimized).
- Read ~10238 input tokens, wrote 0 words (8000 output tokens) in 119311ms.
Result
{
"wordCount": 0,
"inputTokens": 10238,
"outputTokens": 8000,
"latencyMs": 119311
}zai:glm-5.3-flash
truncation
okTiny maxTokens on a long prompt yields finishReason:"length".
- finishReason=length, out=100 tokens.
Result
{
"finishReason": "length",
"outputTokens": 100
}zai:glm-5.3-flash
streaming-only-rejection
okStreaming-only models reject complete(); all others accept it.
- streamingOnly=false; complete() succeeded.
Result
{
"streamingOnly": false,
"completeThrew": false
}abort
okA pre-aborted signal rejects the call (abort is threaded + honored).
- pre-aborted signal → rejected (AbortError).
Result
{
"rejected": true,
"errorName": "AbortError"
}