From 5c152a0b50ced6b91f265b83b8213b7148d5e4f9 Mon Sep 17 00:00:00 2001 From: geekan Date: Thu, 28 Dec 2023 18:02:55 +0800 Subject: [PATCH] fix fireworks --- tests/metagpt/provider/test_fireworks_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/metagpt/provider/test_fireworks_api.py b/tests/metagpt/provider/test_fireworks_api.py index 00b3c716a..ebedb8000 100644 --- a/tests/metagpt/provider/test_fireworks_api.py +++ b/tests/metagpt/provider/test_fireworks_api.py @@ -57,10 +57,10 @@ async def mock_llm_achat_completion_stream(self, messgaes: list[dict]) -> str: @pytest.mark.asyncio async def test_fireworks_acompletion(mocker): - mocker.patch("metagpt.provider.fireworks_api.FireWorksGPTAPI.acompletion", mock_llm_acompletion) - mocker.patch("metagpt.provider.fireworks_api.FireWorksGPTAPI._achat_completion", mock_llm_acompletion) + mocker.patch("metagpt.provider.fireworks_api.FireworksLLM.acompletion", mock_llm_acompletion) + mocker.patch("metagpt.provider.fireworks_api.FireworksLLM._achat_completion", mock_llm_acompletion) mocker.patch( - "metagpt.provider.fireworks_api.FireWorksGPTAPI._achat_completion_stream", mock_llm_achat_completion_stream + "metagpt.provider.fireworks_api.FireworksLLM._achat_completion_stream", mock_llm_achat_completion_stream ) fireworks_gpt = FireworksLLM()