Commit 49d257830908

Vincent Demeester <vincent@sbr.pm>
2026-10-22 11:17:08
feat(pi): configured DeepInfra models
Registered Passage-backed DeepInfra access and a curated set of coding, long-context, reasoning, and multimodal models so Pi can use the provider without changing existing defaults. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent a175a2e
Changed files (2)
dots/pi/agent/auth-keys.json
@@ -23,6 +23,10 @@
     "type": "api_key",
     "key": "!passage show ai/deepseek/api_key"
   },
+  "deepinfra": {
+    "type": "api_key",
+    "key": "!passage show ai/deepinfra/token"
+  },
   "groq": {
     "type": "api_key",
     "key": "!passage show ai/groq/wakasu"
dots/pi/agent/models.json
@@ -23,6 +23,75 @@
         }
       ]
     },
+    "deepinfra": {
+      "baseUrl": "https://api.deepinfra.com/v1/openai",
+      "api": "openai-completions",
+      "models": [
+        {
+          "id": "openai/gpt-oss-20b",
+          "name": "GPT-OSS 20B (DeepInfra)",
+          "reasoning": true,
+          "input": ["text"],
+          "contextWindow": 131072,
+          "maxTokens": 131072,
+          "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"],
+          "contextWindow": 262144,
+          "maxTokens": 262144,
+          "cost": { "input": 0.09, "output": 1.10, "cacheRead": 0, "cacheWrite": 0 }
+        },
+        {
+          "id": "Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo",
+          "name": "Qwen3 Coder 480B A35B Turbo (DeepInfra)",
+          "reasoning": false,
+          "input": ["text"],
+          "contextWindow": 262144,
+          "maxTokens": 262144,
+          "cost": { "input": 0.30, "output": 1.00, "cacheRead": 0.10, "cacheWrite": 0 }
+        },
+        {
+          "id": "deepseek-ai/DeepSeek-V3.2",
+          "name": "DeepSeek V3.2 (DeepInfra, 16k context)",
+          "reasoning": false,
+          "input": ["text"],
+          "contextWindow": 16384,
+          "maxTokens": 16384,
+          "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"],
+          "contextWindow": 1048576,
+          "maxTokens": 1048576,
+          "cost": { "input": 0.15, "output": 0.50, "cacheRead": 0.03, "cacheWrite": 0 }
+        },
+        {
+          "id": "zai-org/GLM-5.3",
+          "name": "GLM 5.3 (DeepInfra)",
+          "reasoning": true,
+          "input": ["text"],
+          "contextWindow": 1048576,
+          "maxTokens": 1048576,
+          "cost": { "input": 0.90, "output": 4.00, "cacheRead": 0.20, "cacheWrite": 0 }
+        },
+        {
+          "id": "moonshotai/Kimi-K2.6",
+          "name": "Kimi K2.6 (DeepInfra)",
+          "reasoning": true,
+          "input": ["text", "image"],
+          "contextWindow": 262144,
+          "maxTokens": 262144,
+          "cost": { "input": 0.75, "output": 3.50, "cacheRead": 0.15, "cacheWrite": 0 }
+        }
+      ]
+    },
     "models-corp": {
       "baseUrl": "https://models.corp.redhat.com/oai/v1",
       "api": "openai-completions",