Commit 6661d2cffbff

Vincent Demeester <vincent@sbr.pm>
2026-11-10 11:03:18
feat: Added EnMaaS model definitions
Added current EnMaaS model endpoints so Pi can use the available hosted models. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 22f9194
Changed files (1)
dots
pi
dots/pi/agent/models.json
@@ -6,23 +6,6 @@
     "anthropic": {
       "baseUrl": "https://api.enmaas.devshift.net"
     },
-    "enmaas-glm-5-3": {
-      "baseUrl": "https://api.enmaas.devshift.net/v1",
-      "api": "openai-completions",
-      "models": [
-        {
-          "id": "rits/zai-org/glm-5-3",
-          "name": "GLM 5.3 (EnMaaS)",
-          "reasoning": true,
-          "input": ["text"],
-          "contextWindow": 1000000,
-          "maxTokens": 65536,
-          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
-          "compat": { "supportsDeveloperRole": false },
-          "samplingParams": { "frequency_penalty": 0, "presence_penalty": 0 }
-        }
-      ]
-    },
     "deepinfra": {
       "baseUrl": "https://api.deepinfra.com/v1/openai",
       "api": "openai-completions",
@@ -31,64 +14,115 @@
           "id": "openai/gpt-oss-20b",
           "name": "GPT-OSS 20B (DeepInfra)",
           "reasoning": true,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 131072,
           "maxTokens": 131072,
-          "cost": { "input": 0.03, "output": 0.14, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0.03,
+            "output": 0.14,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "Qwen/Qwen3-Next-80B-A3B-Instruct",
           "name": "Qwen3 Next 80B A3B (DeepInfra)",
           "reasoning": true,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 262144,
           "maxTokens": 262144,
-          "cost": { "input": 0.09, "output": 1.10, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0.09,
+            "output": 1.1,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo",
           "name": "Qwen3 Coder 480B A35B Turbo (DeepInfra)",
           "reasoning": false,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 262144,
           "maxTokens": 262144,
-          "cost": { "input": 0.30, "output": 1.00, "cacheRead": 0.10, "cacheWrite": 0 }
+          "cost": {
+            "input": 0.3,
+            "output": 1,
+            "cacheRead": 0.1,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "deepseek-ai/DeepSeek-V3.2",
           "name": "DeepSeek V3.2 (DeepInfra, 16k context)",
           "reasoning": false,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 16384,
           "maxTokens": 16384,
-          "cost": { "input": 0.26, "output": 0.38, "cacheRead": 0.13, "cacheWrite": 0 }
+          "cost": {
+            "input": 0.26,
+            "output": 0.38,
+            "cacheRead": 0.13,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "zai-org/GLM-5.3-Flash",
           "name": "GLM 5.3 Flash (DeepInfra)",
           "reasoning": true,
-          "input": ["text", "image"],
+          "input": [
+            "text",
+            "image"
+          ],
           "contextWindow": 1048576,
           "maxTokens": 1048576,
-          "cost": { "input": 0.15, "output": 0.50, "cacheRead": 0.03, "cacheWrite": 0 }
+          "cost": {
+            "input": 0.15,
+            "output": 0.5,
+            "cacheRead": 0.03,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "zai-org/GLM-5.3",
           "name": "GLM 5.3 (DeepInfra)",
           "reasoning": true,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 1048576,
           "maxTokens": 1048576,
-          "cost": { "input": 0.90, "output": 4.00, "cacheRead": 0.20, "cacheWrite": 0 }
+          "cost": {
+            "input": 0.9,
+            "output": 4,
+            "cacheRead": 0.2,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "moonshotai/Kimi-K2.6",
           "name": "Kimi K2.6 (DeepInfra)",
           "reasoning": true,
-          "input": ["text", "image"],
+          "input": [
+            "text",
+            "image"
+          ],
           "contextWindow": 262144,
           "maxTokens": 262144,
-          "cost": { "input": 0.75, "output": 3.50, "cacheRead": 0.15, "cacheWrite": 0 }
+          "cost": {
+            "input": 0.75,
+            "output": 3.5,
+            "cacheRead": 0.15,
+            "cacheWrite": 0
+          }
         }
       ]
     },
@@ -100,28 +134,49 @@
           "id": "Qwen3.8-27B-FP8",
           "name": "Qwen3.8 27B FP8 (Models.corp)",
           "reasoning": false,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 262144,
           "maxTokens": 65536,
-          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "gpt-oss-20b",
           "name": "GPT-OSS 20B (Models.corp)",
           "reasoning": false,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 125000,
           "maxTokens": 32768,
-          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "gpt-oss-120b",
           "name": "GPT-OSS 120B (Models.corp)",
           "reasoning": false,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 131072,
           "maxTokens": 32768,
-          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
         }
       ]
     },
@@ -134,57 +189,147 @@
           "id": "Qwen/Qwen3-Coder-Next-GGUF:Q3_K_M",
           "name": "Qwen3 Coder Next 80B-A3B (best coding, ~40GB RAM)",
           "reasoning": false,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 262144,
           "maxTokens": 32768,
-          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "Qwen/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M",
           "name": "Qwen3 Coder 30B-A3B (sweet spot coding, ~19GB RAM)",
           "reasoning": false,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 131072,
           "maxTokens": 32768,
-          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "Qwen/Qwen2.5-Coder-7B-Instruct-GGUF:Q4_K_M",
           "name": "Qwen 2.5 Coder 7B (lightweight coding, ~5GB)",
           "reasoning": false,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 32768,
           "maxTokens": 16384,
-          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "Qwen/Qwen3-8B-GGUF:Q4_K_M",
           "name": "Qwen3 8B (general purpose, reasoning, ~5GB)",
           "reasoning": true,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 131072,
           "maxTokens": 32768,
-          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "bartowski/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q4_K_M",
           "name": "DeepSeek R1 Distill 7B (deep reasoning, ~5GB)",
           "reasoning": true,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 131072,
           "maxTokens": 32768,
-          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
         },
         {
           "id": "unsloth/Phi-4-mini-instruct-GGUF:Q4_K_M",
           "name": "Phi-4 mini 3.8B (ultra-fast utility, ~2.5GB)",
           "reasoning": false,
-          "input": ["text"],
+          "input": [
+            "text"
+          ],
           "contextWindow": 16384,
           "maxTokens": 8192,
-          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          }
+        }
+      ]
+    },
+    "enmaas": {
+      "baseUrl": "https://api.enmaas.devshift.net/v1",
+      "api": "openai-completions",
+      "models": [
+        {
+          "id": "rits/zai-org/glm-5-3",
+          "name": "GLM 5.3 (EnMaaS)",
+          "reasoning": true,
+          "input": [
+            "text"
+          ],
+          "contextWindow": 1000000,
+          "maxTokens": 65536,
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          },
+          "compat": {
+            "supportsDeveloperRole": false
+          },
+          "samplingParams": {
+            "frequency_penalty": 0,
+            "presence_penalty": 0
+          }
+        },
+        {
+          "id": "rits/deepseek-ai/DeepSeek-V4.1-Flash-1017",
+          "name": "DeepSeek V4.1 Flash (EnMaaS)",
+          "reasoning": true,
+          "input": [
+            "text"
+          ],
+          "contextWindow": 128000,
+          "maxTokens": 8192,
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cacheRead": 0,
+            "cacheWrite": 0
+          },
+          "compat": {
+            "supportsDeveloperRole": false
+          }
         }
       ]
     }
   }
-}
+}
\ No newline at end of file