Optimize: Update certain prompt formats.

This commit is contained in:
shenchucheng 2023-08-09 20:28:31 +08:00
parent 2d8a3f1296
commit e43ae21d98
9 changed files with 43 additions and 49 deletions

View file

@ -25,7 +25,7 @@ async def mock_llm_ask(self, prompt: str, system_msgs):
@pytest.mark.asyncio
async def test_researcher(mocker):
with TemporaryDirectory() as dirname:
topic = "dataiku .vs datarobot"
topic = "dataiku vs. datarobot"
mocker.patch("metagpt.provider.base_gpt_api.BaseGPTAPI.aask", mock_llm_ask)
researcher.RESEARCH_PATH = Path(dirname)
await researcher.Researcher().run(topic)

View file

@ -44,6 +44,9 @@ PAGE = """
<div class="box">
<p>This is a div with a class "box".</p>
<p><a href="https://metagpt.com">a link</a></p>
<p><a href="#section2"></a></p>
<p><a href="ftp://192.168.1.1:8080"></a></p>
<p><a href="javascript:alert('Hello');"></a></p>
</div>
</body>
</html>