fix(storage): Fix storage connector error (#1547)

Co-authored-by: dong <dongzhancai@iie2.com>
Co-authored-by: Zhancai Dong <dongzhancai1@jd.com>
Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
Cooper
2024-05-30 22:02:18 +08:00
committed by GitHub
parent a88af6f87d
commit 04703f2b3a
4 changed files with 30 additions and 33 deletions

View File

@@ -57,12 +57,12 @@ async def main():
# initialize client
DBGPT_API_KEY = "dbgpt"
client = Client(api_key=DBGPT_API_KEY)
async for data in client.chat_stream(
model="chatgpt_proxyllm",
messages="hello",
):
print(data)
data = await client.chat(model="chatgpt_proxyllm", messages="hello")
# async for data in client.chat_stream(
# model="chatgpt_proxyllm",
# messages="hello",
# ):
print(data)
# res = await client.chat(model="chatgpt_proxyllm" ,messages="hello")
# print(res)