MCPcopy Create free account
hub / github.com/openai/openai-node / requestAPIList

Method requestAPIList

src/client.ts:957–966  ·  view source on GitHub ↗
(
    Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass,
    options: PromiseOrValue<FinalRequestOptions>,
  )

Source from the content-addressed store, hash-verified

955 }
956
957 requestAPIList<
958 Item = unknown,
959 PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>,
960 >(
961 Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass,
962 options: PromiseOrValue<FinalRequestOptions>,
963 ): Pagination.PagePromise<PageClass, Item> {
964 const request = this.makeRequest(options, null, undefined);
965 return new Pagination.PagePromise<PageClass, Item>(this as any as OpenAI, request, Page);
966 }
967
968 protected async fetchWithAuth(
969 url: RequestInfo,

Callers 2

getAPIListMethod · 0.95
getNextPageFunction · 0.80

Calls 1

makeRequestMethod · 0.95

Tested by

no test coverage detected