Add timeout to OpenAI Compatible Provider Client #9898
+121
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Closes: #
Description
Adds a timeout to the OpenAI Compatable Provider Client. This instructs the client to wait for the configured amount of timeout before giving up on the xhr request and marking it as an error.
Test Procedure
Run Added test.
Manual testing can be done by using the provider with the cloud service and monitoring for timeout failures. The Client should recover more quickly and continue on with the agentic loop when a timeout occurs.
Pre-Submission Checklist
Documentation Updates
Important
Adds a configurable timeout to the OpenAI Compatible Provider Client, with tests to ensure correct application and handling of timeout values.
BaseOpenAiCompatibleProviderinbase-openai-compatible-provider.tsusinggetApiRequestTimeout().base-openai-compatible-provider-timeout.spec.tsadded.getApiRequestTimeoutis called and timeout values are correctly passed to OpenAI client.getApiRequestTimeoutintimeout-configto simulate different timeout scenarios.This description was created by
for 6b77a9a. You can customize this summary. It will automatically update as commits are pushed.