feat: give zhipu, moonshot, anthropic and google a wire of their own

Eight segments now, and each one holds a ThinkingWire instead of two
fixed fragments: off, on_base, and the key a tier gets written to. The
two fragments could not say "on, at this depth", which is what every
current generation model wants.

Two deliberate behaviour changes fall out of it. The openai segment stops
reporting its shape as unknown — reasoning_effort is OpenAI's own field,
not a vendor dialect, so a compatible endpoint behind the gateway takes
it. And minimax's on-tier stops carrying a hardcoded medium: that was the
library picking a price for the caller, and medium is not even a tier GLM,
kimi or deepseek serve.

The issue #5 guards stay; their sample moves from "the openai segment" to
an explicitly registered unknown one, which is what they always meant to test.
This commit is contained in:
2026-09-05 00:42:58 -04:00
parent 2a50ddcf12
commit 7fabc792b2
7 changed files with 247 additions and 90 deletions
+1
View File
@@ -78,6 +78,7 @@ __all__ = [
"ThinkingCapability",
"ThinkingObservation",
"ThinkingUnsupportedError",
"ThinkingWire",
"TransientError",
"__version__",
"gather_bounded",