timeouts

Configures custom timeout settings for the OpenAI API client.

This method allows users to specify custom timeout values by providing a lambda using the TimeoutConfiguration class. The configured timeouts will then be used for API requests, including request timeout, connection timeout, and socket timeout.

Parameters

configure

A lambda with the TimeoutConfiguration receiver to define custom timeout values for request, connection, and socket operations.