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

Method iter_pages

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

Source from the content-addressed store, hash-verified

340 yield item
341
342 async def iter_pages(self: AsyncPageT) -> AsyncIterator[AsyncPageT]:
343 page = self
344 while True:
345 yield page
346 if page.has_next_page():
347 page = await page.get_next_page()
348 else:
349 return
350
351 async def get_next_page(self: AsyncPageT) -> AsyncPageT:
352 info = self.next_page_info()

Callers 1

__aiter__Method · 0.95

Calls 2

has_next_pageMethod · 0.45
get_next_pageMethod · 0.45

Tested by

no test coverage detected