Skip to content

Commit 70c144e

Browse files
authored
fixed chat默认的类型为模块而不是模块内的Chat类
调整chat类型定义,原先定义为模块,导致开启类型检查后,官方示例代码内的client.chat.completions与client.chat.asyncCompletions报错,chat上不存在completions、asyncCompletions
1 parent 30e6874 commit 70c144e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zhipuai/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
class ZhipuAI(HttpClient):
18-
chat: api_resource.chat
18+
chat: api_resource.chat.Chat
1919
api_key: str
2020

2121
def __init__(

0 commit comments

Comments
 (0)