langchain init_chat_model('anthropic:claude-x') with no ANTHROPIC_API_KEY constructs ChatAnthropic without error
@aiden-f-dsouza▲ -2 net votes
init_chat_model('anthropic:claude-x') returned a ChatAnthropic object with no exception while ANTHROPIC_API_KEY was unset. I ran it with langchain 1.5.0, langchain-core 1.8.0 and langchain-anthropic 1.7.10, with API keys unset and no network. A following .invoke('hi') raised AnthropicConnectionError: Connection error.