We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cce066a commit ba26168Copy full SHA for ba26168
tests/integration_tests/test_batches.py
@@ -87,12 +87,13 @@ def test_batch_list(logging_conf) -> None:
87
try:
88
list = client.batches.list(limit=10)
89
print(list)
90
- print("_________get_next_page___________")
91
- batch = list.get_next_page()
92
- print(batch)
93
- print("_________iter_pages___________")
94
- for batch in list.iter_pages():
+ if list.has_more:
+ print("_________get_next_page___________")
+ batch = list.get_next_page()
95
print(batch)
+ print("_________iter_pages___________")
+ for batch in list.iter_pages():
96
+ print(batch)
97
except zhipuai.core._errors.APIRequestFailedError as err:
98
print(err)
99
except zhipuai.core._errors.APIInternalError as err:
0 commit comments