File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 345345 )
346346 print (response.choices[0 ].message.content)
347347
348- except zai.APIStatusError as err:
348+ except zai.core. APIStatusError as err:
349349 print (f " API Status Error: { err} " )
350- except zai.APITimeoutError as err:
350+ except zai.core. APITimeoutError as err:
351351 print (f " Request Timeout: { err} " )
352352except Exception as err:
353353 print (f " Unexpected Error: { err} " )
Original file line number Diff line number Diff line change 351351 )
352352 print (response.choices[0 ].message.content)
353353
354- except zai.APIStatusError as err:
354+ except zai.core. APIStatusError as err:
355355 print (f " API状态错误: { err} " )
356- except zai.APITimeoutError as err:
356+ except zai.core. APITimeoutError as err:
357357 print (f " 请求超时: { err} " )
358358except Exception as err:
359359 print (f " 其他错误: { err} " )
You can’t perform that action at this time.
0 commit comments