Fix anthropic_api_key handling in AnthropicLLM.py
This commit is contained in:
parent
d2c616ab76
commit
98d5351d87
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue