Commit 53d0e632ef18

Vincent Demeester <vincent@sbr.pm>
2026-10-20 15:38:53
feat(pi): configured EnMaaS providers
Configured EnMaaS-backed OpenAI, Anthropic, and GLM 5.3 access so Pi can use the Red Hat service with its Passage-managed credential. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 3fe4c65
Changed files (3)
dots/pi/agent/auth-keys.json
@@ -1,4 +1,16 @@
 {
+  "openai": {
+    "type": "api_key",
+    "key": "!passage show redhat/enmaas/aomi_key"
+  },
+  "anthropic": {
+    "type": "api_key",
+    "key": "!passage show redhat/enmaas/aomi_key"
+  },
+  "enmaas-glm-5-3": {
+    "type": "api_key",
+    "key": "!passage show redhat/enmaas/aomi_key"
+  },
   "openrouter": {
     "type": "api_key",
     "key": "!passage show ai/openroute/api_key"
dots/pi/agent/models.json
@@ -1,5 +1,28 @@
 {
   "providers": {
+    "openai": {
+      "baseUrl": "https://api.enmaas.devshift.net/v1"
+    },
+    "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 }
+        }
+      ]
+    },
     "llama-cpp": {
       "baseUrl": "https://llm.sbr.pm/v1",
       "api": "openai-completions",
dots/pi/agent/README.md
@@ -81,6 +81,12 @@ The `ensure-auth.sh` script:
 ### Available Providers
 
 Current passage-based API keys:
+- **`openai`**, **`anthropic`**, **`enmaas-glm-5-3`** - EnMaaS (`redhat/enmaas/aomi_key`)
+  - `openai` and `anthropic` route their built-in model catalogs through EnMaaS.
+  - `enmaas-glm-5-3` exposes GLM 5.3 explicitly:
+    ```bash
+    pi --provider enmaas-glm-5-3 --model "rits/zai-org/glm-5-3" -p "Reply with exactly: OK"
+    ```
 - **`google`** - Gemini API (`ai/gemini/api_key`)
 - **`openrouter`** - OpenRouter API (`ai/openroute/api_key`)
 - **`deepseek`** - DeepSeek API (`ai/deepseek/api_key`)