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

Method get_next_page

src/openai/_base_client.py:351–359  ·  view source on GitHub ↗
(self: AsyncPageT)

Source from the content-addressed store, hash-verified

349 return
350
351 async def get_next_page(self: AsyncPageT) -> AsyncPageT:
352 info = self.next_page_info()
353 if not info:
354 raise RuntimeError(
355 "No next page expected; please check `.has_next_page()` before calling `.get_next_page()`."
356 )
357
358 options = self._info_to_options(info)
359 return await self._client._request_api_list(self._model, page=self.__class__, options=options)
360
361
362_HttpxClientT = TypeVar("_HttpxClientT", bound=Union[httpx.Client, httpx.AsyncClient])

Callers

nothing calls this directly

Calls 3

_info_to_optionsMethod · 0.80
next_page_infoMethod · 0.45
_request_api_listMethod · 0.45

Tested by

no test coverage detected