change error name to use config.yaml instead of config.json
This commit is contained in:
parent
20a069e87e
commit
1a9ea0a29c
2 changed files with 2 additions and 2 deletions
|
|
@ -407,7 +407,7 @@ class Anthropic extends BaseLLM {
|
|||
): AsyncGenerator<ChatMessage> {
|
||||
if (!this.apiKey || this.apiKey === "") {
|
||||
throw new Error(
|
||||
"Request not sent. You have an Anthropic model configured in your config.json, but the API key is not set.",
|
||||
"Request not sent. You have an Anthropic model configured in your config.yaml, but the API key is not set.",
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -488,7 +488,7 @@ describe("Anthropic", () => {
|
|||
},
|
||||
}),
|
||||
).rejects.toThrow(
|
||||
"Request not sent. You have an Anthropic model configured in your config.json, but the API key is not set.",
|
||||
"Request not sent. You have an Anthropic model configured in your config.yaml, but the API key is not set.",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue