We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8e16ae commit fec2f2bCopy full SHA for fec2f2b
2 files changed
README.md
@@ -345,9 +345,9 @@ try:
345
)
346
print(response.choices[0].message.content)
347
348
-except zai.APIStatusError as err:
+except zai.core.APIStatusError as err:
349
print(f"API Status Error: {err}")
350
-except zai.APITimeoutError as err:
+except zai.core.APITimeoutError as err:
351
print(f"Request Timeout: {err}")
352
except Exception as err:
353
print(f"Unexpected Error: {err}")
README_CN.md
@@ -351,9 +351,9 @@ try:
354
355
print(f"API状态错误: {err}")
356
357
print(f"请求超时: {err}")
358
359
print(f"其他错误: {err}")
0 commit comments