clean format

This commit is contained in:
stellahsr 2023-12-28 16:41:39 +08:00
parent 86d497a0bd
commit beaa708356
11 changed files with 4 additions and 720 deletions

View file

@ -36,9 +36,12 @@ async def test_zhipuai_acompletion(mocker):
assert resp["code"] == 200
assert "chatglm-turbo" in resp["data"]["choices"][0]["content"]
def test_zhipuai_proxy(mocker):
import openai
from metagpt.config import CONFIG
CONFIG.openai_proxy = 'http://127.0.0.1:8080'
CONFIG.openai_proxy = "http://127.0.0.1:8080"
_ = ZhiPuAIGPTAPI()
assert openai.proxy == CONFIG.openai_proxy