Update tools.py
Browse files
tools.py
CHANGED
|
@@ -7,6 +7,7 @@ from tool import *
|
|
| 7 |
|
| 8 |
def drug_tools(llm: BaseLanguageModel, api_keys: dict = {}, verbose=True, image_path = r"...", file_path = r"..."):
|
| 9 |
serp_api_key = api_keys.get("SERP_API_KEY") or os.getenv("SERP_API_KEY")
|
|
|
|
| 10 |
image_path = image_path
|
| 11 |
file_path = file_path
|
| 12 |
semantic_scholar_api_key = api_keys.get("SEMANTIC_SCHOLAR_API_KEY") or os.getenv(
|
|
@@ -56,6 +57,7 @@ def make_tools(llm: BaseLanguageModel, api_keys: dict = {}, verbose=True, image
|
|
| 56 |
serp_api_key = api_keys.get("SERP_API_KEY") or os.getenv("SERP_API_KEY")
|
| 57 |
image_path = image_path
|
| 58 |
file_path = file_path
|
|
|
|
| 59 |
semantic_scholar_api_key = api_keys.get("SEMANTIC_SCHOLAR_API_KEY") or os.getenv(
|
| 60 |
"SEMANTIC_SCHOLAR_API_KEY"
|
| 61 |
)
|
|
|
|
| 7 |
|
| 8 |
def drug_tools(llm: BaseLanguageModel, api_keys: dict = {}, verbose=True, image_path = r"...", file_path = r"..."):
|
| 9 |
serp_api_key = api_keys.get("SERP_API_KEY") or os.getenv("SERP_API_KEY")
|
| 10 |
+
openai_api_key = api_keys.get("OPENAI_API_KEY") or os.getenv("OPENAI_API_KEY")
|
| 11 |
image_path = image_path
|
| 12 |
file_path = file_path
|
| 13 |
semantic_scholar_api_key = api_keys.get("SEMANTIC_SCHOLAR_API_KEY") or os.getenv(
|
|
|
|
| 57 |
serp_api_key = api_keys.get("SERP_API_KEY") or os.getenv("SERP_API_KEY")
|
| 58 |
image_path = image_path
|
| 59 |
file_path = file_path
|
| 60 |
+
openai_api_key = api_keys.get("OPENAI_API_KEY") or os.getenv("OPENAI_API_KEY")
|
| 61 |
semantic_scholar_api_key = api_keys.get("SEMANTIC_SCHOLAR_API_KEY") or os.getenv(
|
| 62 |
"SEMANTIC_SCHOLAR_API_KEY"
|
| 63 |
)
|