-
Notifications
You must be signed in to change notification settings - Fork 935
feat(vertexai): Add support for AbortSignal
#8890
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 821e580 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
496add1
to
f9950ce
Compare
Changeset File Check
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1This report is too large (226,497 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.Test Logs |
Vertex AI Mock Responses Check
|
b9a363a
to
3e0cc6b
Compare
b3e7dd8
to
c616128
Compare
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.
Looks good, but won't approve until council review.
|
||
If provided, calling `abort()` on the corresponding `AbortController` will attempt to cancel the underlying HTTP request. An `AbortError` will be thrown if cancellation is successful. | ||
|
||
Note that this will not cancel the request in the backend, so billing will still be applied despite cancellation. |
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.
👍
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.
Approved, pending merge of #9011 where you'll have to update the changeset and regenerate docs and the api.md.
Add an
AbortSignal
to a newSingleRequestOptions
that can be passed to all methods that make requests to the backend, allowing them to be aborted.Fixes #8859
API Proposal: go/vinf-abort-request-api (internal)