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

Method _get_page

src/openai/_base_client.py:298–309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

296 return self._get_page().__await__()
297
298 async def _get_page(self) -> AsyncPageT:
299 def _parser(resp: AsyncPageT) -> AsyncPageT:
300 resp._set_private_attributes(
301 model=self._model,
302 options=self._options,
303 client=self._client,
304 )
305 return resp
306
307 self._options.post_parser = _parser
308
309 return await self._client.request(self._page_cls, self._options)
310
311 async def __aiter__(self) -> AsyncIterator[_T]:
312 # https://github.com/microsoft/pyright/issues/3464

Callers 1

__await__Method · 0.95

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected