mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-11 16:52:37 +02:00
clean format
This commit is contained in:
parent
86d497a0bd
commit
beaa708356
11 changed files with 4 additions and 720 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue