谁能解释一下create调用的关系 #56
echoflying
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
调用链:client.chat.completions.create
类依赖关系:ZhipuAI >属性> Chat >调用> completions >返回Completions,调用>create执行网络访问
理解:最终执行网络访问用的是completions的create,chat调用completions时传递了自己从BaseAPI继承过来的ZhipuAI类的_client,是另外一个ZhipuAI的实例。而与最早的ZhipuAI类的client没有任何关系。
请教大神:
总体感觉这几个类写得关系有点绕,不知道后面会不会优化。
Beta Was this translation helpful? Give feedback.
All reactions