From 98d5351d87e4140f5e78f7a53b64de3fa69cfdf9 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 4 Dec 2023 14:55:32 -0300 Subject: [PATCH] Fix anthropic_api_key handling in AnthropicLLM.py --- src/backend/langflow/components/llms/AnthropicLLM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/components/llms/AnthropicLLM.py b/src/backend/langflow/components/llms/AnthropicLLM.py index 34017bd41..cd22250be 100644 --- a/src/backend/langflow/components/llms/AnthropicLLM.py +++ b/src/backend/langflow/components/llms/AnthropicLLM.py @@ -64,7 +64,7 @@ class AnthropicLLM(CustomComponent): try: output = ChatAnthropic( model_name=model, - anthropic_api_key=SecretStr(anthropic_api_key), + anthropic_api_key=SecretStr(anthropic_api_key) if anthropic_api_key else None, max_tokens_to_sample=max_tokens, # type: ignore temperature=temperature, anthropic_api_url=api_endpoint,