From 07520aa35497f69c4cd63a639cccdd3008b2566a Mon Sep 17 00:00:00 2001 From: Linxin Song Date: Thu, 22 Feb 2024 07:01:30 +0900 Subject: [PATCH] [AutoBuild] fix test error (#1750) * try to fix blog * modify blog * fix test error in #717; fix blog typo in installation; update blogs with output examples. * pre-commit * pre-commit * Update website/blog/2023-11-26-Agent-AutoBuild/index.mdx Co-authored-by: Qingyun Wu * add future work * fix grammar * update agent_builder * solve #941; add detailed debug info; support json string config * pre-commit * solve #954 * pre-commit * [new feature] build group chat agents from library. * pre-commit * add authors' info in notebook; add a new notebook for build_from_library; reduce prompt effort * update test and example for build_from_library * pre-commit * add notebook; update docs * change notebook name * change description for notebook and doc * remove default value for default_llm_config * add embedding similarity agent selection * pre-commit * update test * add dependency installation in github workflow * update test * pre-commit * update notebook * support directly json as library; support customize embedding model * update test * pre-commit * update github test workflow * Update autobuild_agent_library.ipynb * add agent description * refine prompt; update notebook * pre-commit * update test example * update test * update test * update test * change `config_path` to `config_path_or_env`; update test * pre-commit * update test * update test * update test: add config_file_location * change `config_path_or_env` to `config_file_or_env` * update test * solve noqa * fix import error for conftest * fix test error * pre-commit * * update error message in `_create_agent`. * replace `gpt-4-1106-preview` to `gpt-4` in test file. * add comment on local server creation; modify notebook; update contrib-openai.yml for test; add autobuild option in setup.py; add autotest model name statement * move import huggingface_hub to _create_agent * pre-commit * add uncover comment in the endpoint creation code block * recover contrib-openai.yml for merge * remove TERMINATE assertion for sys msg * remove TERMINATE assertion --------- Co-authored-by: Jieyu Zhang Co-authored-by: Qingyun Wu --- test/agentchat/contrib/test_agent_builder.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/agentchat/contrib/test_agent_builder.py b/test/agentchat/contrib/test_agent_builder.py index c945f127148d..3f9d69c32ea6 100644 --- a/test/agentchat/contrib/test_agent_builder.py +++ b/test/agentchat/contrib/test_agent_builder.py @@ -53,10 +53,6 @@ def test_build(): # check number of agents assert len(agent_config["agent_configs"]) <= builder.max_agents - # check system message - for cfg in agent_config["agent_configs"]: - assert "TERMINATE" in cfg["system_message"] - @pytest.mark.skipif( skip, @@ -87,10 +83,6 @@ def test_build_from_library(): # check number of agents assert len(agent_config["agent_configs"]) <= builder.max_agents - # check system message - for cfg in agent_config["agent_configs"]: - assert "TERMINATE" in cfg["system_message"] - builder.clear_all_agents() # test embedding similarity selection @@ -111,12 +103,6 @@ def test_build_from_library(): # check number of agents assert len(agent_config["agent_configs"]) <= builder.max_agents - # Disabling the assertion below to avoid test failure - # TODO: check whether the assertion is necessary - # check system message - # for cfg in agent_config["agent_configs"]: - # assert "TERMINATE" in cfg["system_message"] - @pytest.mark.skipif( skip,