MCPcopy
hub / github.com/openai/openai-python / get_next_page

Method get_next_page

src/openai/_base_client.py:271–279  ·  view source on GitHub ↗
(self: SyncPageT)

Source from the content-addressed store, hash-verified

269 return
270
271 def get_next_page(self: SyncPageT) -> SyncPageT:
272 info = self.next_page_info()
273 if not info:
274 raise RuntimeError(
275 "No next page expected; please check `.has_next_page()` before calling `.get_next_page()`."
276 )
277
278 options = self._info_to_options(info)
279 return self._client._request_api_list(self._model, page=self.__class__, options=options)
280
281
282class AsyncPaginator(Generic[_T, AsyncPageT]):

Callers 2

iter_pagesMethod · 0.45
iter_pagesMethod · 0.45

Calls 3

_info_to_optionsMethod · 0.80
next_page_infoMethod · 0.45
_request_api_listMethod · 0.45

Tested by

no test coverage detected