re-commit zhipu-api due to merge mistake

This commit is contained in:
better629 2024-02-07 10:02:15 +08:00
parent 2a496cacc7
commit 6f31289e7e
6 changed files with 43 additions and 30 deletions

View file

@ -17,7 +17,7 @@ default_resp = {
}
async def mock_zhipuai_acreate_stream(**kwargs):
async def mock_zhipuai_acreate_stream(self, **kwargs):
class MockResponse(object):
async def _aread(self):
class Iterator(object):
@ -37,7 +37,7 @@ async def mock_zhipuai_acreate_stream(**kwargs):
return MockResponse()
async def mock_zhipuai_acreate(**kwargs) -> dict:
async def mock_zhipuai_acreate(self, **kwargs) -> dict:
return default_resp