{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/ZAIModelSettings", "title": "ZAIModelSettings", "properties": { "max_output_tokens": { "type": "integer", "title": "Max Output Tokens", "description": "The maximum number of tokens the model can generate.", "default": 4096 }, "parallel_tool_calls": { "type": "boolean", "title": "Parallel Tool Calls", "description": "Whether to enable parallel tool calling.", "default": true }, "provider_type": { "type": "string", "const": "zai", "title": "Provider Type", "description": "The type of the provider.", "default": "zai" }, "temperature": { "type": "number", "title": "Temperature", "description": "The temperature of the model.", "default": 0.7 }, "response_format": { "anyOf": [ { "oneOf": [ { "$ref": "#/components/schemas/TextResponseFormat" }, { "$ref": "#/components/schemas/JsonSchemaResponseFormat" }, { "$ref": "#/components/schemas/JsonObjectResponseFormat" } ], "discriminator": { "propertyName": "type", "mapping": { "json_object": "#/components/schemas/JsonObjectResponseFormat", "json_schema": "#/components/schemas/JsonSchemaResponseFormat", "text": "#/components/schemas/TextResponseFormat" } } }, { "type": "null" } ], "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", "description": "Z.ai (ZhipuAI) model configuration (OpenAI-compatible)." }