Skip to content

Comments

feat: Add EnsureDownloaded fluent method#121

Draft
srebrek wants to merge 2 commits intotests/fix-integration-testsfrom
feat/115-ensure-downloaded
Draft

feat: Add EnsureDownloaded fluent method#121
srebrek wants to merge 2 commits intotests/fix-integration-testsfrom
feat/115-ensure-downloaded

Conversation

@srebrek
Copy link
Collaborator

@srebrek srebrek commented Feb 12, 2026

Closes #115

feat: Add EnsureDownloaded fluent method

  • add EnsureDownloaded method

!!! Review PR #120 before !!!

@srebrek srebrek force-pushed the tests/fix-integration-tests branch from 200ba82 to 54a3aed Compare February 13, 2026 11:16
@srebrek srebrek force-pushed the feat/115-ensure-downloaded branch from 47c7f53 to c85e444 Compare February 13, 2026 11:55
@srebrek srebrek marked this pull request as draft February 13, 2026 12:38
@srebrek srebrek force-pushed the feat/115-ensure-downloaded branch from c85e444 to 987a2dc Compare February 13, 2026 14:34
if (model is LocalModel)
{
await AIHub.Model().EnsureDownloadedAsync(_agent.Model);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add some logging/exception when its cloud model - so user is notified that we are not going to download anything and this method should not be used for non-local context. Probably its even better to throw exception (but one of our internal exceptions / new one)

same should be applied for chat context

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.

2 participants