Skip to content

Commit

Permalink
Update chat_models.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Sep 10, 2024
1 parent 705d95d commit 74fc9dc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libs/langchain-anthropic/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -949,9 +949,6 @@ export class ChatAnthropicMessages<
): Promise<Anthropic.Message> {
if (!this.batchClient) {
const options = this.apiUrl ? { baseURL: this.apiUrl } : undefined;
if (!this.apiKey && !this.createClient) {
throw new Error("Missing Anthropic API key.");
}
this.batchClient = this.createClient({
...this.clientOptions,
...options,
Expand Down

0 comments on commit 74fc9dc

Please sign in to comment.