From 0808949e5498945cde545ea144728de526dfd0ff Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sat, 19 Aug 2023 22:26:08 +0900 Subject: [PATCH 1/2] Fix typo in apis.ipynb (#9490) funtions -> functions --- docs/extras/use_cases/apis.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/extras/use_cases/apis.ipynb b/docs/extras/use_cases/apis.ipynb index dba17c1c01c..31d01199194 100644 --- a/docs/extras/use_cases/apis.ipynb +++ b/docs/extras/use_cases/apis.ipynb @@ -145,7 +145,7 @@ "source": [ "## Functions \n", "\n", - "We can unpack what is hapening when we use the funtions to calls external APIs.\n", + "We can unpack what is hapening when we use the functions to calls external APIs.\n", "\n", "Let's look at the [LangSmith trace](https://smith.langchain.com/public/76a58b85-193f-4eb7-ba40-747f0d5dd56e/r):\n", "\n", From be9bc62f8b82d1fc432bb22e6ddba9a30050f9d8 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Sat, 19 Aug 2023 09:27:14 -0400 Subject: [PATCH 2/2] Fix bash test regex for Linux under WSL2. (#9475) It fails with `Permission denied` and not `not found`. Both seem reasonable. --- libs/langchain/tests/unit_tests/test_bash.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/langchain/tests/unit_tests/test_bash.py b/libs/langchain/tests/unit_tests/test_bash.py index bbcd6072ace..2b05dffab8d 100644 --- a/libs/langchain/tests/unit_tests/test_bash.py +++ b/libs/langchain/tests/unit_tests/test_bash.py @@ -56,7 +56,9 @@ def test_incorrect_command_return_err_output() -> None: """Test optional returning of shell output on incorrect command.""" session = BashProcess(return_err_output=True) output = session.run(["invalid_command"]) - assert re.match(r"^/bin/sh:.*invalid_command.*not found.*$", output) + assert re.match( + r"^/bin/sh:.*invalid_command.*(?:not found|Permission denied).*$", output + ) @pytest.mark.skipif(