Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

refactor filename

geekan05749fad3198
diff --git a/metagpt/tools/hello.py b/metagpt/tools/openapi_v3_hello.py
similarity index 96%
rename from metagpt/tools/hello.py
rename to metagpt/tools/openapi_v3_hello.py
index ec7fc9231..c8f5de42d 100644
--- a/metagpt/tools/hello.py
+++ b/metagpt/tools/openapi_v3_hello.py
@@ -3,7 +3,7 @@
"""
@Time : 2023/5/2 16:03
@Author : mashenquan
-@File : hello.py
+@File : openapi_v3_hello.py
@Desc : Implement the OpenAPI Specification 3.0 demo and use the following command to test the HTTP service:
curl -X 'POST' \
diff --git a/requirements.txt b/requirements.txt
index 7a4b42a7e..9c90034cb 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -53,7 +53,7 @@ gitpython==3.1.40
zhipuai==1.0.7
socksio~=1.0.0
gitignore-parser==0.1.9
-# connexion[uvicorn]~=3.0.5 # Used by metagpt/tools/hello.py
+# connexion[uvicorn]~=3.0.5 # Used by metagpt/tools/openapi_v3_hello.py
websockets~=12.0
networkx~=3.2.1
google-generativeai==0.3.2
diff --git a/tests/metagpt/tools/test_hello.py b/tests/metagpt/tools/test_hello.py
index 243206991..7e61532ab 100644
--- a/tests/metagpt/tools/test_hello.py
+++ b/tests/metagpt/tools/test_hello.py
@@ -18,7 +18,7 @@ from metagpt.config import CONFIG
@pytest.mark.asyncio
async def test_hello():
workdir = Path(__file__).parent.parent.parent.parent
- script_pathname = workdir / "metagpt/tools/hello.py"
+ script_pathname = workdir / "metagpt/tools/openapi_v3_hello.py"
env = CONFIG.new_environ()
env["PYTHONPATH"] = str(workdir) + ":" + env.get("PYTHONPATH", "")
process = subprocess.Popen(["python", str(script_pathname)], cwd=workdir, env=env)