Skip to content

Commit

Permalink
Merge pull request #291 from Sema4AI/fix-tool-cached
Browse files Browse the repository at this point in the history
fix: Action Server: do not cache tool definitions
  • Loading branch information
mkorpela authored Apr 11, 2024
2 parents 56a3016 + df17ba8 commit 892af90
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion backend/app/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ def _get_tavily_answer():
return _TavilyAnswer(api_wrapper=tavily_search)


@lru_cache(maxsize=1)
def _get_action_server(**kwargs: ActionServerConfig):
toolkit = ActionServerToolkit(url=kwargs["url"], api_key=kwargs["api_key"])
tools = toolkit.get_tools()
Expand Down

0 comments on commit 892af90

Please sign in to comment.