From 3c7468e1136730390dec8bceafb79c7e4b4003e1 Mon Sep 17 00:00:00 2001 From: bcherb2 Date: Wed, 18 Nov 2026 01:25:43 -0500 Subject: [PATCH] feat: Pi models.json from live API keys stay $DEEPSEEK_API_KEY / $ZAI_API_KEY env references. --- dot_pi/agent/models.json | 121 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 dot_pi/agent/models.json diff --git a/dot_pi/agent/models.json b/dot_pi/agent/models.json new file mode 100644 index 0000000..c9ba98b --- /dev/null +++ b/dot_pi/agent/models.json @@ -0,0 +1,121 @@ +{ + "providers": { + "deepseek": { + "baseUrl": "https://api.deepseek.com", + "api": "openai-completions", + "apiKey": "$DEEPSEEK_API_KEY", + "compat": { + "thinkingFormat": "deepseek" + }, + "models": [ + { + "id": "deepseek-v4-pro", + "name": "DeepSeek V4 Pro", + "reasoning": true, + "input": ["text"], + "contextWindow": 1000000, + "maxTokens": 65536, + "cost": { "input": 1.32, "output": 3.96, "cacheRead": 0.044, "cacheWrite": 0 } + }, + { + "id": "deepseek-v4-flash", + "name": "DeepSeek V4 Flash", + "reasoning": true, + "input": ["text"], + "contextWindow": 1000000, + "maxTokens": 65536, + "cost": { "input": 0.14, "output": 0.28, "cacheRead": 0.0028, "cacheWrite": 0 } + } + ] + }, + "zai": { + "baseUrl": "https://api.z.ai/api/coding/paas/v4", + "api": "openai-completions", + "apiKey": "$ZAI_API_KEY", + "compat": { + "supportsDeveloperRole": false, + "thinkingFormat": "zai" + }, + "models": [ + { + "id": "glm-4.6", + "name": "GLM-4.6 (Coding)", + "reasoning": true, + "input": ["text"], + "contextWindow": 200000, + "maxTokens": 131072, + "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } + }, + { + "id": "glm-5.3", + "name": "GLM-5.3 (Coding)", + "reasoning": true, + "thinkingLevelMap": { + "off": null, + "minimal": null, + "low": "low", + "medium": null, + "high": "high", + "xhigh": null, + "max": "max" + }, + "input": ["text"], + "contextWindow": 1000000, + "maxTokens": 131072, + "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, + "compat": { + "supportsStore": false, + "supportsReasoningEffort": true, + "maxTokensField": "max_tokens", + "supportsStrictMode": true, + "zaiToolStream": true + } + }, + { + "id": "glm-5.3-flash", + "name": "GLM-5.3 Flash (Coding)", + "reasoning": true, + "thinkingLevelMap": { + "off": null, + "minimal": null, + "low": "low", + "medium": null, + "high": "high", + "xhigh": null, + "max": "max" + }, + "input": ["text", "image"], + "contextWindow": 1000000, + "maxTokens": 131072, + "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, + "compat": { + "supportsStore": false, + "supportsReasoningEffort": true, + "maxTokensField": "max_tokens", + "supportsStrictMode": true, + "zaiToolStream": true + } + } + ] + }, + "local-lmstudio": { + "baseUrl": "http://localhost:1234/v1", + "api": "openai-completions", + "apiKey": "lmstudio", + "compat": { + "supportsDeveloperRole": false, + "supportsReasoningEffort": false + }, + "models": [ + { + "id": "qwen3.6-27b-uncensored-heretic-v2-native-mtp-preserved", + "name": "Qwen 3.6 27B Uncensored Heretic v2 (Local)", + "reasoning": true, + "input": ["text"], + "contextWindow": 38000, + "maxTokens": 32000 + } + ] + } + } +}