API key loading for OpenAIChatAPI and AnthropicChatAPI previously occurred in the __init__ functions, which is unnecessary and led to the requirement of an ANTHROPIC_API_KEY being available to run the example notebook, even though no API calls are ever made. This PR moves the API key loading to the make_llm_call function where it's actually needed.
API key loading for
OpenAIChatAPI
andAnthropicChatAPI
previously occurred in the__init__
functions, which is unnecessary and led to the requirement of anANTHROPIC_API_KEY
being available to run the example notebook, even though no API calls are ever made. This PR moves the API key loading to themake_llm_call
function where it's actually needed.Closes #30