From accf284b306d34884a9b25fd6a6fbad7a75ee932 Mon Sep 17 00:00:00 2001 From: Deepankar Mahapatro Date: Tue, 23 May 2023 20:15:13 +0530 Subject: [PATCH 1/2] ci: test lcserve push job --- .github/workflows/test-lcserve-push.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/test-lcserve-push.yml diff --git a/.github/workflows/test-lcserve-push.yml b/.github/workflows/test-lcserve-push.yml new file mode 100644 index 000000000..f207c0a91 --- /dev/null +++ b/.github/workflows/test-lcserve-push.yml @@ -0,0 +1,17 @@ +name: Trigger build and push on langchain-serve + +on: + workflow_dispatch: + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Trigger build and push on langchain-serve + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.SERVE_GITHUB_TOKEN }} + repository: jina-ai/langchain-serve + event-type: langflow-push + client-payload: '{"push_token": "${{ secrets.LCSERVE_PUSH_TOKEN }}", "branch": "dev"}' From 5dfaa9a81a6268c419ecccb04282e222083a74f6 Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Tue, 23 May 2023 11:51:31 -0300 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20style(tests):=20add=20displa?= =?UTF-8?q?y=5Fname=20field=20to=20LLM=20in=20test=5Fagents=5Ftemplate.py?= =?UTF-8?q?=20and=20test=5Fchains=5Ftemplate.py=20The=20display=5Fname=20f?= =?UTF-8?q?ield=20was=20added=20to=20the=20LLM=20object=20in=20the=20test?= =?UTF-8?q?=5Fagents=5Ftemplate.py=20and=20test=5Fchains=5Ftemplate.py=20f?= =?UTF-8?q?iles.=20This=20field=20is=20used=20to=20display=20the=20name=20?= =?UTF-8?q?of=20the=20LLM=20in=20the=20UI.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_agents_template.py | 3 +++ tests/test_chains_template.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/test_agents_template.py b/tests/test_agents_template.py index 750050c25..7aa8de176 100644 --- a/tests/test_agents_template.py +++ b/tests/test_agents_template.py @@ -82,6 +82,7 @@ def test_json_agent(client: TestClient): "type": "BaseLanguageModel", "list": False, "advanced": False, + "display_name": "LLM", } @@ -120,6 +121,7 @@ def test_csv_agent(client: TestClient): "type": "BaseLanguageModel", "list": False, "advanced": False, + "display_name": "LLM", } @@ -183,4 +185,5 @@ def test_initialize_agent(client: TestClient): "type": "BaseLanguageModel", "list": False, "advanced": False, + "display_name": "LLM", } diff --git a/tests/test_chains_template.py b/tests/test_chains_template.py index f1154a556..c958cf64d 100644 --- a/tests/test_chains_template.py +++ b/tests/test_chains_template.py @@ -326,6 +326,7 @@ def test_series_character_chain(client: TestClient): assert template["llm"] == { "required": True, + "display_name": "LLM", "placeholder": "", "show": True, "multiline": False, @@ -388,6 +389,7 @@ def test_mid_journey_prompt_chain(client: TestClient): assert template["llm"] == { "required": True, + "display_name": "LLM", "placeholder": "", "show": True, "multiline": False, @@ -427,6 +429,7 @@ def test_time_travel_guide_chain(client: TestClient): assert template["llm"] == { "required": True, "placeholder": "", + "display_name": "LLM", "show": True, "multiline": False, "password": False,