Skip to main content
Create a configuration object for customizing OpenAI API client behavior. Use this to set base URLs, timeouts, organization IDs, and other advanced client options.

Samples

Configure timeout

Set a custom timeout for API requests:

Use custom base URL

Point to a different OpenAI-compatible API endpoint:

Full configuration

Combine multiple settings:

Arguments

Returns

JSONB: A configuration object that can be passed to other OpenAI functions via the client_config parameter.