-
Notifications
You must be signed in to change notification settings - Fork 195
feat(api): abort signal for vscode-lm, gemini, mistral (SDK-specific quirks) #732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
easonLiangWorldedtech
wants to merge
15
commits into
Zoo-Code-Org:main
from
easonLiangWorldedtech:feat/abort-signal-core/sdk-providers
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
80f8538
feat(api): add RequestConfigBuilder class for SDK-agnostic request co…
easonliang28 9c2ed0d
docs(config-builder): enhance README with generic architecture design…
easonliang28 35b9b97
fix(config-builder): fix broken TOC link and simplify mergeAbortSigna…
easonliang28 f774650
fix: addHeaders default param and mergeAbortSignals order in RequestC…
easonliang28 0e6d895
feat(providers): add completePrompt signal/timeout tests for all 25 p…
easonliang28 a427faa
refactor(modelCache): export isAuthScopedProvider and writeModels fun…
easonliang28 94efadd
fix: handle pre-aborted secondary signal in mergeAbortSignals
easonliang28 ebe3946
refactor(api): unify completePrompt abort signal to use metadata.abor…
easonliang28 062df3b
test(task): strengthen abortSignal identity assertions and add sequen…
easonliang28 f73cc12
feat(api): add completePrompt abort signal support and tests for qwen…
easonliang28 1e8a6b0
fix(api-providers): fix timeout handling and abort signal issues in c…
easonliang28 2575f60
fix(api): improve timeout and abort signal handling across providers
easonliang28 b75a327
fix(api): standardize timeoutMs handling across all providers and fix…
easonliang28 768b42c
feat(api): wire AbortSignal to SDK providers (vscode-lm, gemini, mist…
easonliang28 5a6f256
fix: correct gemini abort signal test to match config.abortSignal path
easonliang28 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Don't export
timeoutMsas a shared completion contract until every provider honors it.CompletePromptOptions.timeoutMsis now part of the publicSingleCompletionHandlerAPI, butsrc/api/providers/anthropic-vertex.ts(Line 299) andsrc/api/providers/bedrock.ts(Line 841) still ignore it and only forward abort state. That makes timeout behavior provider-dependent behind one shared interface. Either wire the override everywhere or narrow/document the contract before exporting it.🤖 Prompt for AI Agents