From ddc7d806b14a3cdc02613bd72649871b7fab4179 Mon Sep 17 00:00:00 2001 From: ziadarafat Date: Sat, 28 Nov 2026 21:07:21 -0700 Subject: [PATCH] models.json: provider keys through secretctl, not literals Google, Groq, OpenRouter and zai authenticate via secretctl at call time, and strict mode is off where the provider rejects it. --- config/free-pi/models.json | 14 +++++++++++++- config/pi/models.json | 17 ++++++++++++++--- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/config/free-pi/models.json b/config/free-pi/models.json index dae5c6e..42e868a 100644 --- a/config/free-pi/models.json +++ b/config/free-pi/models.json @@ -68,7 +68,7 @@ "compat": { "supportsUsageInStreaming": true, "supportsStore": false, - "supportsStrictMode": true + "supportsStrictMode": false }, "models": [ { @@ -130,6 +130,18 @@ } } ] + }, + "google": { + "apiKey": "!secretctl get GEMINI_API_KEY -- sh -c 'printf %s \"$GEMINI_API_KEY\"'" + }, + "groq": { + "apiKey": "!secretctl get GROQ_API_KEY -- sh -c 'printf %s \"$GROQ_API_KEY\"'" + }, + "openrouter": { + "apiKey": "!secretctl get OPENROUTER_API_KEY -- sh -c 'printf %s \"$OPENROUTER_API_KEY\"'" + }, + "zai": { + "apiKey": "!secretctl get ZAI_API_KEY -- sh -c 'printf %s \"$ZAI_API_KEY\"'" } } } diff --git a/config/pi/models.json b/config/pi/models.json index 6d4eb59..00ef18b 100644 --- a/config/pi/models.json +++ b/config/pi/models.json @@ -155,8 +155,19 @@ "supportsStore": false, "supportsStrictMode": false, "supportsUsageInStreaming": true - }, - "supportsStrictMode": false + } + }, + "google": { + "apiKey": "!secretctl get GEMINI_API_KEY -- sh -c 'printf %s \"$GEMINI_API_KEY\"'" + }, + "groq": { + "apiKey": "!secretctl get GROQ_API_KEY -- sh -c 'printf %s \"$GROQ_API_KEY\"'" + }, + "openrouter": { + "apiKey": "!secretctl get OPENROUTER_API_KEY -- sh -c 'printf %s \"$OPENROUTER_API_KEY\"'" + }, + "zai": { + "apiKey": "!secretctl get ZAI_API_KEY -- sh -c 'printf %s \"$ZAI_API_KEY\"'" } } -} \ No newline at end of file +}