mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-11 00:32:37 +02:00
merge main
This commit is contained in:
commit
5c7cdf5ee7
2 changed files with 13 additions and 0 deletions
|
|
@ -51,3 +51,13 @@ async def test_zhipuai_acompletion(mocker):
|
|||
|
||||
resp = await zhipu_gpt.aask(prompt_msg)
|
||||
assert resp == resp_content
|
||||
|
||||
|
||||
def test_zhipuai_proxy(mocker):
|
||||
import openai
|
||||
|
||||
from metagpt.config import CONFIG
|
||||
|
||||
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