Skip to content

Commit

Permalink
Merge pull request #340 from Sema4AI/action-server-additional-headers
Browse files Browse the repository at this point in the history
Enable passing additional headers to the action server.
  • Loading branch information
mkorpela authored May 28, 2024
2 parents b85eb8d + ee19331 commit 9432c0b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
6 changes: 5 additions & 1 deletion backend/app/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,11 @@ def _get_tavily_answer():


def _get_action_server(**kwargs: ActionServerConfig):
toolkit = ActionServerToolkit(url=kwargs["url"], api_key=kwargs["api_key"])
toolkit = ActionServerToolkit(
url=kwargs["url"],
api_key=kwargs["api_key"],
additional_headers=kwargs.get("additional_headers", {}),
)
tools = toolkit.get_tools()
return tools

Expand Down
16 changes: 8 additions & 8 deletions backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ wikipedia = "^1.4.0"
langchain-google-vertexai = "^1.0.1"
setuptools = "^69.0.3"
pdfminer-six = "^20231228"
langchain-robocorp = "^0.0.5"
langchain-robocorp = "^0.0.8"
fireworks-ai = "^0.11.2"
httpx = { version = "0.25.2", extras = ["socks"] }
unstructured = {extras = ["doc", "docx"], version = "^0.12.5"}
Expand Down

0 comments on commit 9432c0b

Please sign in to comment.