Skip to content

ChatGPTModelsOptions

Defined in: core/src/auth/chatgpt-models.ts:16

  • Pick<AuthHost, "fetchImpl" | "timeoutMs">
optional baseUrl?: string;

Defined in: core/src/auth/chatgpt-models.ts:18

The Codex API root. Defaults to the ChatGPT preset’s base URL.


optional clientVersion?: string;

Defined in: core/src/auth/chatgpt-models.ts:20

The caller’s version. Defaults to Codex’s development version, 0.0.0.


optional fetchImpl?: (input, init?) => Promise<Response>;

Defined in: core/src/auth/oauth.ts:27

Replaces fetch, for tests.

MDN Reference

Parameter Type
input RequestInfo | URL
init? RequestInit

Promise<Response>

AuthHost.fetchImpl


optional signal?: AbortSignal;

Defined in: core/src/auth/chatgpt-models.ts:21


optional timeoutMs?: number;

Defined in: core/src/auth/oauth.ts:29

How long one request to a sign-in server may take, in ms. Default 30 s.

AuthHost.timeoutMs