You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a2b77f4
Browse filesBrowse the repository at this point in the historyBrowse files
fix(hermes-local): check config.env for API keys in test environment
The test environment was only checking process.env for API keys, missing
the secrets resolved by the server into ctx.config.env. Now checks
config.env first (adapter-configured secrets) then falls back to
process.env, matching how other adapters (Claude) handle it.
Also adds ZAI_API_KEY to the checked providers and strips inline YAML
comments from parsed config values in detect-model.
hint: "Set ANTHROPIC_API_KEY, OPENROUTER_API_KEY, or OPENAI_API_KEY. Hermes may also have keys configured in ~/.hermes/.env",
155
+
hint: "Set ANTHROPIC_API_KEY, OPENROUTER_API_KEY, OPENAI_API_KEY, or ZAI_API_KEY in the agent's env secrets. Hermes may also have keys configured in ~/.hermes/.env",
141
156
code: "hermes_no_api_keys",
142
157
};
143
158
}
@@ -146,6 +161,7 @@ function checkApiKeys(): AdapterEnvironmentCheck | null {
146
161
if(hasAnthropic)providers.push("Anthropic");
147
162
if(hasOpenRouter)providers.push("OpenRouter");
148
163
if(hasOpenAI)providers.push("OpenAI");
164
+
if(hasZai)providers.push("Z.AI");
149
165
150
166
return{
151
167
level: "info",
@@ -191,8 +207,8 @@ export async function testEnvironment(
191
207
constmodelCheck=checkModel(config);
192
208
if(modelCheck)checks.push(modelCheck);
193
209
194
-
// 5. API keys
195
-
constapiKeyCheck=checkApiKeys();
210
+
// 5. API keys (check config.env — server resolves secrets before calling us)
0 commit comments