Skip to content

Commit

Permalink
feat(config): add support for NVIDIA and OpenRouter API keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mert-ergun committed Feb 17, 2025
1 parent b06b080 commit 7864872
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crossbar_llm/backend/tools/langchain_llm_qa_trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,8 @@ def run_for_query(
self.config.anthropic_api_key = api_key
self.config.groq_api_key = api_key
self.config.replicate_api_key = api_key
self.config.nvidia_api_key = api_key
self.config.openrouter_api_key = api_key

else:
self.config = Config()
Expand Down Expand Up @@ -662,6 +664,8 @@ def execute_query(
self.config.anthropic_api_key = api_key
self.config.groq_api_key = api_key
self.config.replicate_api_key = api_key
self.config.nvidia_api_key = api_key
self.config.openrouter_api_key = api_key
else:
self.config = Config()

Expand Down

0 comments on commit 7864872

Please sign in to comment.