Skip to content

Commit

Permalink
fix issue with ADEPTIF tool
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgee committed Jun 10, 2024
1 parent fe07959 commit 70960a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/app/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from langchain_core.tools import Tool
from langchain_robocorp import ActionServerToolkit
from typing_extensions import TypedDict
from brightbot_adeptid import AdeptIDToolkit
#from bbtools.adeptid import AdeptIDToolkit

from app.upload import vstore

Expand Down Expand Up @@ -59,7 +59,7 @@ class AvailableTools(str, Enum):
PUBMED = "pubmed"
WIKIPEDIA = "wikipedia"
DALL_E = "dall_e"
ADEPT_ID = "adept_id"
ADEPTID = "adeptid"


class ToolConfig(TypedDict):
Expand Down Expand Up @@ -329,7 +329,8 @@ def _get_dalle_tools():
)

def _get_adeptID_tools(**kwargs: ActionServerConfig):
toolkit = AdeptIDToolkit(url=kwargs["url"], api_key=kwargs["api_key"])
#toolkit = AdeptIDToolkit(url=kwargs["url"], api_key=kwargs["api_key"])
toolkit = ActionServerToolkit(url=kwargs["url"], api_key=kwargs["api_key"])
tools = toolkit.get_tools()
return tools

Expand Down

0 comments on commit 70960a9

Please sign in to comment.