No need to use the updated llama.cpp if the bundled one is up to date
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
This commit is contained in:
parent
a3fb86a0bb
commit
eb0dba0cc8
|
|
@ -71,8 +71,7 @@ func downloadLatestLlamaCpp(ctx context.Context, log logging.Logger, httpClient
|
|||
if err != nil {
|
||||
return fmt.Errorf("failed to read bundled llama.cpp version: %w", err)
|
||||
} else if strings.TrimSpace(string(data)) == latest {
|
||||
log.Infoln("bundled llama.cpp version is up to date")
|
||||
return nil
|
||||
return errors.New("bundled llama.cpp version is up to date, no need to update")
|
||||
}
|
||||
|
||||
data, err = os.ReadFile(currentVersionFile)
|
||||
|
|
|
|||
Loading…
Reference in New Issue