deepinfra:glm-5.2
8/17/2026, 7:12:16 AM · 15 tests · run 90259d68-c78a-4dc0-828f-e6fa634f6aa8
basic-generation
okPlain streaming generation with a soft length constraint (~100 words).
- Produced 90 words (110 output tokens).
Result
{
"wordCount": 90,
"outputTokens": 110
}deepinfra:zai-org/GLM-5.2
usage-cost
okAsserts usage tokens populate and cost computes from the ChatReq contract.
- in=20 out=174 rt=0 cost=$0.000433 (paid).
Result
{
"inputTokens": 20,
"outputTokens": 174,
"reasoningTokens": 0,
"costUsd": 0.0004326,
"paid": true
}deepinfra:zai-org/GLM-5.2
streaming-structure
okAsserts a streaming call captures events that reconstruct into the final text.
- mode=streaming, 70 stream events, 1 text block(s), 35 chars.
Result
{
"mode": "streaming",
"streamEventCount": 70,
"textBlocks": 1,
"textLen": 35
}deepinfra:zai-org/GLM-5.2
complete-stream-parity
okSame prompt via stream() and complete() both return valid, matching results.
- stream="Paris" · complete="Paris"
Result
{
"streamText": "Paris",
"completeText": "Paris"
}deepinfra:zai-org/GLM-5.2
deepinfra:zai-org/GLM-5.2
reasoning-conformance
okAsserts the model's reasoning knob behaves as its reasoning-config declares.
- Class (from reasoning-config): toggleable.
- off: out=542 · mid: out=1222 (rt=0).
Result
{
"class": "toggleable",
"mode": "deterministic",
"offOutputTokens": 542,
"midOutputTokens": 1222,
"midReasoningTokens": 0
}deepinfra:zai-org/GLM-5.2
deepinfra:zai-org/GLM-5.2
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
}deepinfra:zai-org/GLM-5.2
tool-loop
okForces a tool call, feeds the result back, and checks the continuation uses it.
- step1 (required): multiply({"a":23,"b":17}) → step2: "The product of 23 multiplied by 17 is **391**."
Result
{
"toolName": "multiply",
"args": {
"a": 23,
"b": 17
},
"product": 391,
"continuation": "The product of 23 multiplied by 17 is **391**.",
"usesResult": true,
"forced": true
}deepinfra:zai-org/GLM-5.2
deepinfra:zai-org/GLM-5.2
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.
- Step 1 didn't engage reasoning (adaptive discretion) — signature not exercised this run.
- reasoned=false, none token —; follow-up → "Great, the current balance for account **acme-42** is **$1,234.00**. N"
Result
{
"signatureType": "none",
"tokenCaptured": false,
"reasoned": false,
"answered": true,
"continuation": "Great, the current balance for account **acme-42** is **$1,234.00**. Now let me work through the compound-interest calculation.\n\n---\n\n### St"
}deepinfra:zai-org/GLM-5.2
deepinfra:zai-org/GLM-5.2
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"
},
"validJson": true,
"missingKeys": [],
"bareJson": true
}deepinfra:zai-org/GLM-5.2
summarize-memex
okSummarizes an ~11k-token essay to ~500 words (long input, reasoning minimized).
- Read ~10232 input tokens, wrote 601 words (752 output tokens) in 19667ms.
Result
{
"wordCount": 601,
"inputTokens": 10232,
"outputTokens": 752,
"latencyMs": 19667
}deepinfra:zai-org/GLM-5.2
truncation
okTiny maxTokens on a long prompt yields finishReason:"length".
- finishReason=length, out=100 tokens.
Result
{
"finishReason": "length",
"outputTokens": 100
}deepinfra:zai-org/GLM-5.2
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"
}