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.
The chat example is broken currently, as noted in #431. TLDR: Update Onnxruntime-web in chat sample to be v1.20.1
There are two symptoms that are displayed in the console. One is a failure to initialize the session, leading to
TypeError: Cannot read properties of undefined (reading 'run')
. That error is somewhat ambiguous. However, running under a debugger we see a more descriptive error:Per https://issues.chromium.org/issues/346321149,
requestAdapterInfo
was deprecated. gyagp/onnxruntime@2a70ffd is the associated PR intoonnxruntime
making the update.This change only updates the chat sample. Other samples (ort-whisper, quick-start_onnxruntime-web-bundler, sd-turbo, and segment-anything) all use even older onnxruntime-web packages. For sd-turbo, PR #498 submitted an equivalent change for a different issue. Consider updating all of the onnxruntime-web packages.