18 lines
452 B
Go
18 lines
452 B
Go
package llamacpp
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
|
|
"github.com/docker/model-runner/pkg/logging"
|
|
)
|
|
|
|
func (l *llamaCpp) ensureLatestLlamaCpp(ctx context.Context, log logging.Logger, httpClient *http.Client,
|
|
llamaCppPath, vendoredServerStoragePath string,
|
|
) error {
|
|
desiredVersion := "latest"
|
|
desiredVariant := "metal"
|
|
return l.downloadLatestLlamaCpp(ctx, log, httpClient, llamaCppPath, vendoredServerStoragePath, desiredVersion,
|
|
desiredVariant)
|
|
}
|