D-Star-AI / dsRAG

High-performance retrieval engine for unstructured data
MIT License
1.02k stars 66 forks source link

API key load bug fix #53

Closed zmccormick7 closed 2 months ago

zmccormick7 commented 2 months 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