List all provider keys in README settings example

This commit is contained in:
Mario Zechner 2025-12-24 02:42:41 +01:00
parent 541758fbe0
commit 81b10f2fa0
2 changed files with 21 additions and 14 deletions

View file

@ -428,7 +428,7 @@ export class AgentSession {
if (!this.model) {
throw new Error(
"No model selected.\n\n" +
`Use /login, set an API key environment variable 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.",
);
}
@ -438,7 +438,7 @@ export class AgentSession {
if (!apiKey) {
throw new Error(
`No API key found for ${this.model.provider}.\n\n` +
`Set the appropriate environment variable or update ${getModelsPath()}`,
`Use /login, set an API key environment variable, or create ${getModelsPath()}`,
);
}