Skip to content

fix: return promise from Model.download() to enable await with progre…#467

Merged
baijumeswani merged 3 commits intomainfrom
samuel100/fix-model-download-await
Feb 28, 2026
Merged

fix: return promise from Model.download() to enable await with progre…#467
baijumeswani merged 3 commits intomainfrom
samuel100/fix-model-download-await

Conversation

@samuel100
Copy link
Contributor

Model.download() was discarding the Promise returned by ModelVariant.download(), causing await to resolve immediately. This meant load() could run before the download completed, resulting in 'Model path does not exist' errors.

…ss callback

Model.download() was discarding the Promise returned by ModelVariant.download(),
causing await to resolve immediately. This meant load() could run before the
download completed, resulting in 'Model path does not exist' errors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
foundry-local Ready Ready Preview, Comment Feb 28, 2026 0:24am

Request Review

@baijumeswani
Copy link
Contributor

@copilot please merge main into this branch

Copy link
Contributor

Copilot AI commented Feb 28, 2026

@baijumeswani I've opened a new pull request, #474, to work on those changes. Once the pull request is ready, I'll request review from you.

…ss callback (#474)

* Initial plan

* Merge main into branch: resolve conflicts keeping Promise<void> fix

Co-authored-by: baijumeswani <12852605+baijumeswani@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: baijumeswani <12852605+baijumeswani@users.noreply.github.com>
@baijumeswani baijumeswani merged commit 138e385 into main Feb 28, 2026
6 of 7 checks passed
@baijumeswani baijumeswani deleted the samuel100/fix-model-download-await branch February 28, 2026 00:24
prathikr pushed a commit that referenced this pull request Feb 28, 2026
#467)

* fix: return promise from Model.download() to enable await with progress callback

Model.download() was discarding the Promise returned by ModelVariant.download(),
causing await to resolve immediately. This meant load() could run before the
download completed, resulting in 'Model path does not exist' errors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: return Promise from Model.download() to enable await with progress callback (#474)

* Initial plan

* Merge main into branch: resolve conflicts keeping Promise<void> fix

Co-authored-by: baijumeswani <12852605+baijumeswani@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: baijumeswani <12852605+baijumeswani@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: baijumeswani <12852605+baijumeswani@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants