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.
Related functions
openai_embed(): use custom client config with embeddingsopenai_chat_complete(): use custom client config with chat