Delete and modify some files

This commit is contained in:
mannaandpoem 2023-12-27 15:08:01 +08:00
parent 2cb06a7888
commit 1ee35c930e
9 changed files with 20 additions and 161 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