Skip to content
providerkit
GitHub

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?: FetchLike;

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

Replaces fetch, for tests.

AuthHost.fetchImpl


optional signal?: AbortSignal;

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


optional timeoutMs?: number;

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

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

AuthHost.timeoutMs