Provider capability factsheet (z.ai / Anthropic / OpenAI) #127
Notifications
Due Date
No due date set.
Blocks
#128 Multi-profile engine architecture + ADR-0014
AlexKucera/museion
Reference: AlexKucera/museion#127
Reference in new issue
Block a user
Part of #125
Question
Ground the native client in verified provider facts. Per provider — z.ai (BOTH endpoint families: coding plan and standard PAAS), Anthropic, OpenAI: (1)
/modelslisting endpoint — auth, response shape, filtering, whether it lists reasoning/thinking variants; (2) function-calling wire format for submit_fix_cards / submit_research_notes-style tools, including how streaming tool-call deltas arrive; (3) SSE quirks — GLM's reasoning_content side-channel and the coding endpoint's end-of-turn content flush (no live streaming), Anthropic native event stream (message_start / content_block_delta / message_delta) vs its OpenAI-compat layer; (4) reasoning-model parameter surface (GLM thinking.type / reasoning_effort rules incl. cannot-disable on 5.3 and the coding-plan effort mapping; OpenAI and Anthropic equivalents) and budget rules (thinking counts inside max_tokens); (5) error shapes worth surfacing in a settings Test Connection probe. Deliverable:docs/research/native-llm-providers.mdfactsheet on branchresearch/native-llm-providers— LOCAL commits only, push awaits authorization. Seed material:prototypes/model-bench/bench.py(working multi-provider client incl. the param-fix retry ladder),prototypes/model-bench/results/, thellm-api-benchmarkingskill. Verify against official docs AND live probes (.secrets holds throwaway keys — read from disk, never print). Resolution comment carries the factsheet path + branch @ commit.[Generated by AI]
Resolved — factsheet delivered.
Factsheet:
docs/research/native-llm-providers.md— per provider (z.ai coding + standard families, Anthropic, OpenAI): endpoints & auth,/modelsshapes, chat/streaming wire incl. thinking channels,submit_fix_cards-style typed-tool formats, parameter quirks + budget rules, error decoding for a Test Connection probe. Grounded in official docs and live probes run today against the real endpoints.Branch:
research/native-llm-providers@d12463b1fb6aa00ad79d22d24cc61de33d2dfc10— local only, push awaits authorization.Key findings (details + probe transcripts in the factsheet):
max_tokens—max_tokens:1024+ effortmax→ HTTP 200,finish=length, empty content, 1007/1024 tokens reasoning. Never gate on status code; cap ≥24k for thinking passes. Content on both z.ai families arrives in an end-of-turn flush (onlyreasoning_contentstreams live); TTFT ≈ thinking + most of generation./models, 200 both — so/modelsproves nothing about key/endpoint pairing; no 1113 anywhere in bench results), andthinking.type:"disabled"is accepted (200) on both families today despite docs saying it fails. Stable wire =thinking:enabled+ explicitreasoning_effort(wire enum is wider than docs:none…max, error 1210; docs map to low/high/max, default max).reasoning_effort≠noneon/v1/chat/completions(400, names/v1/responsesas the alternative) — typed-tool passes on OpenAI either run non-reasoning or need the Responses API. Anthropic 5.x removed forced tool choice (tool_choicetool/any → 400, auto only) and swappedthinking:{type:enabled,budget_tokens}forthinking:{type:adaptive}+output_config.effort ∈ low/medium/high/xhigh/max(400s verbatim in factsheet); thinking streams asthinking_delta+signature_delta, tool args as incrementalinput_json_deltafragments (20 live) vs z.ai's single-delta flush. OpenAImax_tokens→ 400 usemax_completion_tokens.DOX:
docs/research/created and indexed indocs/AGENTS.md. Push awaits authorization.[Generated by AI]
Landed: merged to main @
32f601d(merge: fold native-llm-providers research into main) — authorization given 2026-10-23. The pre-merge correction commit (49a121c, z.ai streaming claim) is part of the merged history.[Generated by AI]