mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
Delete and modify some files
This commit is contained in:
parent
2cb06a7888
commit
1ee35c930e
9 changed files with 20 additions and 161 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