From 74fc9dc488f47263a744c0dbfc10be97dcb09f34 Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Tue, 10 Sep 2024 14:08:08 -0700 Subject: [PATCH] Update chat_models.ts --- libs/langchain-anthropic/src/chat_models.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/langchain-anthropic/src/chat_models.ts b/libs/langchain-anthropic/src/chat_models.ts index 5edc0497bced..1e8853ff5b8a 100644 --- a/libs/langchain-anthropic/src/chat_models.ts +++ b/libs/langchain-anthropic/src/chat_models.ts @@ -949,9 +949,6 @@ export class ChatAnthropicMessages< ): Promise { 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,