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

Method prepareRequest

src/client.ts:708–711  ·  view source on GitHub ↗

* Used as a callback for mutating the given `RequestInit` object. * * This is useful for cases where you want to add certain headers based off of * the request properties, e.g. `method` or `url`.

(
    request: RequestInit,
    { url, options }: { url: string; options: FinalRequestOptions },
  )

Source from the content-addressed store, hash-verified

706 * the request properties, e.g. `method` or `url`.
707 */
708 protected async prepareRequest(
709 request: RequestInit,
710 { url, options }: { url: string; options: FinalRequestOptions },
711 ): Promise<void> {}
712
713 get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
714 return this.methodRequest('get', path, opts);

Callers 1

makeRequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected