feat: add reasoning zai openrouter (#9189)

* feat: add reasoning zai openrouter

* add openrouter reasoning

* stage + publish api

* openrouter reasoning always on

* revert

* fix

* remove reference

* do
This commit is contained in:
Ari Webb
2026-01-30 16:42:02 -08:00
committed by Caren Thomas
parent 01cb00ae10
commit 0bbb9c9bc0
8 changed files with 192 additions and 18 deletions

View File

@@ -46358,12 +46358,40 @@
],
"title": "Response Format",
"description": "The response format for the model."
},
"thinking": {
"$ref": "#/components/schemas/ZAIThinking",
"description": "The thinking configuration for GLM-4.5+ models.",
"default": {
"type": "enabled",
"clear_thinking": false
}
}
},
"type": "object",
"title": "ZAIModelSettings",
"description": "Z.ai (ZhipuAI) model configuration (OpenAI-compatible)."
},
"ZAIThinking": {
"properties": {
"type": {
"type": "string",
"enum": ["enabled", "disabled"],
"title": "Type",
"description": "Whether thinking is enabled or disabled.",
"default": "enabled"
},
"clear_thinking": {
"type": "boolean",
"title": "Clear Thinking",
"description": "If False, preserved thinking is used (recommended for agents).",
"default": false
}
},
"type": "object",
"title": "ZAIThinking",
"description": "Thinking configuration for ZAI GLM-4.5+ models."
},
"letta__schemas__agent_file__AgentSchema": {
"properties": {
"name": {