File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,23 @@ def test_model_check(logging_conf):
115115
116116
117117
118+ except zhipuai .core ._errors .APIRequestFailedError as err :
119+ print (err )
120+ except zhipuai .core ._errors .APIInternalError as err :
121+ print (err )
122+ except zhipuai .core ._errors .APIStatusError as err :
123+ print (err )
124+
125+
126+ def test_model_delete (logging_conf ):
127+ logging .config .dictConfig (logging_conf ) # type: ignore
128+ client = ZhipuAI () # 填写您自己的APIKey
129+ try :
130+ delete = client .fine_tuning .models .delete (fine_tuned_model = "chatglm3-6b-8572905046912426020-demo_test" )
131+
132+ print (delete )
133+
134+
118135 except zhipuai .core ._errors .APIRequestFailedError as err :
119136 print (err )
120137 except zhipuai .core ._errors .APIInternalError as err :
You can’t perform that action at this time.
0 commit comments