You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable custom configuration for http connection in OrchestrationClient #494
Please note that this will affect all HTTP traffic performed by the AI SDK. If that is not desired, please share more information about your use case and why you want to change the configuration specifically only for orchestration calls.
We would like to have possibility to run calls to OrchestrationClient with different http connection settings.
For example for health check calls to Orchestration we want to keep timeout short, as there are timeout restrictions in the platform itself which we use for health check.
And for usual calls (not health heck), we want to have longer timeout settings.
So, in case your SDK provides possibility to configure connection timeout settings at the creation of OrchestrationClient, we can just create two different clients and use one for health check (short timeout) the other for other calls (long timeout).
If I understand you correctly, for those use cases the connection timeout is not suitable and will not achieve what you want. For example, a 2 minute connection timeout still allows for requests that take 10 minutes. It just means the TCP connection doesn't timeout, not that the server responds within 2 minutes.
Instead, please apply a resilience configuration such as:
Finally, we generally advise against performing LLM calls as part of a health check. Health checks should be fast, inexpensive and only include things an application can't meaningfully start or run without (e.g. a database).
Activity
MatKuhr commentedon Jul 10, 2025
You can already customize the HTTP client as described here.
Please note that this will affect all HTTP traffic performed by the AI SDK. If that is not desired, please share more information about your use case and why you want to change the configuration specifically only for orchestration calls.
14f34890 commentedon Jul 11, 2025
We would like to have possibility to run calls to
OrchestrationClientwith different http connection settings.For example for health check calls to Orchestration we want to keep timeout short, as there are timeout restrictions in the platform itself which we use for health check.
And for usual calls (not health heck), we want to have longer timeout settings.
So, in case your SDK provides possibility to configure connection timeout settings at the creation of
OrchestrationClient, we can just create two different clients and use one for health check (short timeout) the other for other calls (long timeout).MatKuhr commentedon Jul 11, 2025
If I understand you correctly, for those use cases the connection timeout is not suitable and will not achieve what you want. For example, a 2 minute connection timeout still allows for requests that take 10 minutes. It just means the TCP connection doesn't timeout, not that the server responds within 2 minutes.
Instead, please apply a resilience configuration such as:
Finally, we generally advise against performing LLM calls as part of a health check. Health checks should be fast, inexpensive and only include things an application can't meaningfully start or run without (e.g. a database).