Skip to content

[Web] [Feature Request] Ability to abort #23703

Closed
@sroussey

Description

@sroussey

Describe the issue

I am working on a PR for huggingface/transformers.js that adds the ability to abort an operation. Right now, it works for model downloads, but it does not work for generation that happens via ORT.

To reproduce

On the JS side of things, an AbortController as used by fetch() would be great.

Urgency

No response

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.20.1 and 1.21.0-dev.20250206-d981b153d3

Execution Provider

'wasm'/'cpu' (WebAssembly CPU), 'webgpu' (WebGPU)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ep:WebGPUort-web webgpu providerplatform:webissues related to ONNX Runtime web; typically submitted using templatestaleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions