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.
This commit is contained in:
1 parent
8ce4afc9f4
commit
ddc7d806b1
2 files changed
+27
-4
No files matched your search
@@ -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\"'"
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-3
@@ -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\"'"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user