Skip to content

Commit

Permalink
Interface for allowing providers to pull models
Browse files Browse the repository at this point in the history
Part of #283
  • Loading branch information
Munsio committed Jul 25, 2024
1 parent c550ddf commit 98aeb3b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions .mockery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ packages:
interfaces:
Loader:
Provider:
Puller:
Query:
github.com/symflower/eval-dev-quality/tools:
interfaces:
Expand Down
6 changes: 6 additions & 0 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@ type Loader interface {
// Unload unloads the given model.
Unload(modelIdentifier string) (err error)
}

// Puller is a provider that is capable of pulling models.
type Puller interface {
// Pull downloads the given model.
Pull(logger *log.Logger, modelIdentifier string) error
}
45 changes: 45 additions & 0 deletions provider/testing/Puller_mock_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98aeb3b

Please sign in to comment.