Skip to content

Commit

Permalink
remove pqapi api key - local only pqa
Browse files Browse the repository at this point in the history
  • Loading branch information
SamCox822 committed Nov 1, 2024
1 parent 8a7a758 commit da4aacc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
# OpenAI API Key
OPENAI_API_KEY=YOUR_OPENAI_API_KEY_GOES_HERE # pragma: allowlist secret

# PQA API Key to use LiteratureSearch tool (optional) -- it also requires OpenAI key
PQA_API_KEY=YOUR_PQA_API_KEY_GOES_HERE # pragma: allowlist secret

# Optional: add TogetherAI, Fireworks, or Anthropic API key here to use their models
2 changes: 1 addition & 1 deletion mdagent/tools/maketools.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def make_all_tools(
all_tools += [
ModifyBaseSimulationScriptTool(path_registry=path_instance, llm=llm),
]
if "OPENAI_API_KEY" in os.environ and "PQA_API_KEY" in os.environ:
if path_instance.ckpt_papers:
all_tools += [Scholar2ResultLLM(llm=llm, path_registry=path_instance)]
if human:
all_tools += [agents.load_tools(["human"], llm)[0]]
Expand Down

0 comments on commit da4aacc

Please sign in to comment.