A model entry's reasoningEfforts dict declares its selectable thinking levels — key = offered level, value = the wire spelling dispatch sends; only off may leave the value empty (supported, send nothing). false strips reasoning from a catalog model; every level is materialized explicitly into pi-ai's thinkingLevelMap so nobody has to know pi-ai's asymmetric absent-key defaulting. compat.thinkingFormat and compat.supportsReasoningEffort become configurable on the route and per model (model > route > catalog entry > pi-ai's URL-derived guess), openai-completions only, so a private gateway speaking the DeepSeek reasoning dialect no longer depends on its URL being recognizable. Record-typed drift gates pin both enums to pi-ai's, and an unserviceable declaration is refused at the write that produced it, naming route, model, and level.
8 lines
174 B
Markdown
8 lines
174 B
Markdown
- menu "模型与推理等级":
|
|
- menuitemradio "Default" [checked]:
|
|
- text: Default
|
|
- img
|
|
- menuitemradio "Off"
|
|
- menuitemradio "High"
|
|
- menuitemradio "Max"
|