Skip to main content
Version: Next

HTTP Clients

Copilot uses two different scoped Symfony HttpClient component to send HTTP requests. One client is used for executing all requests related to Hugging Face actions and the other one is used for all requests related to OpenAPI actions.

Configuration

Timeout

The HTTP timeout is the maximum time in seconds that the CoPilot will wait for a response from the configured endpoint. If the server does not respond within this time, the request will be aborted. Default timeout is set to 180 seconds.

You can configure the timeout for each client separately.

framework:
http_client:
scoped_clients:
# http client for Hugging Face actions
http_client.hugging.face.client:
timeout: 500 # In seconds
framework:
http_client:
scoped_clients:
# http client for OpenAPI actions
http_client.openai.v1.client:
timeout: 500 # In seconds