D-Star-AI / dsRAG

High-performance retrieval engine for unstructured data
MIT License
852 stars 61 forks source link

API key load bug fix #53

Closed zmccormick7 closed 1 month ago

zmccormick7 commented 1 month ago

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.

Closes #30