🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
remove attribute openai_vision_model and vision_max_tokens and method test_generate_webpages_with_style_and_script
mannaandpoem675b96b0f5c3
diff --git a/metagpt/config2.py b/metagpt/config2.pyindex d983a43c3..bc6af18c6 100644--- a/metagpt/config2.py+++ b/metagpt/config2.py@@ -75,8 +75,6 @@ class Config(CLIParams, YamlModel):iflytek_api_key: str = ""azure_tts_subscription_key: str = ""azure_tts_region: str = ""- openai_vision_model: str = "gpt-4-vision-preview"- vision_max_tokens: int = 4096@classmethoddef from_home(cls, path):diff --git a/tests/metagpt/tools/libs/test_gpt_v_generator.py b/tests/metagpt/tools/libs/test_gpt_v_generator.pyindex 76ada8622..907006765 100644--- a/tests/metagpt/tools/libs/test_gpt_v_generator.py+++ b/tests/metagpt/tools/libs/test_gpt_v_generator.py@@ -47,17 +47,7 @@ def image_path():@pytest.mark.asyncio-async def test_generate_webpages_with_styles_and_scripts(mock_webpage_filename_with_styles_and_scripts, image_path):- generator = GPTvGenerator()- rsp = await generator.generate_webpages(image_path=image_path)- logs.logger.info(rsp)- assert "html" in rsp- assert "css" in rsp- assert "javascript" in rsp---async def test_generate_webpages_with_style_and_script(mock_webpage_filename_with_style_and_script, image_path):+async def test_generate_webpages(mock_webpage_filename_with_styles_and_scripts, image_path):generator = GPTvGenerator()rsp = await generator.generate_webpages(image_path=image_path)logs.logger.info(rsp)