Allow startup without API keys, fixes #288

This commit is contained in:
Mario Zechner 2025-12-24 01:52:59 +01:00
parent ce8a1c8eb1
commit e234e8d18f
4 changed files with 48 additions and 12 deletions

View file

@ -422,8 +422,7 @@ export class AgentSession {
if (!this.model) {
throw new Error(
"No model selected.\n\n" +
"Set an API key (ANTHROPIC_API_KEY, OPENAI_API_KEY, etc.)\n" +
`or create ${getModelsPath()}\n\n` +
`Use /login, set an API key environment variable or create ${getModelsPath()}\n\n` +
"Then use /model to select a model.",
);
}