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:
Dorin Geman 2025-04-17 02:14:28 +03:00 committed by Piotr Stankiewicz
parent a3fb86a0bb
commit eb0dba0cc8
1 changed files with 1 additions and 2 deletions

View File

@ -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)