From c476f9013000ded2ec62f7189474f899a1842bc3 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Tue, 16 Jun 2026 17:28:49 +0900 Subject: [PATCH] Skip downloading model if cache exists --- bindings/ruby/lib/whisper/model/uri.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/ruby/lib/whisper/model/uri.rb b/bindings/ruby/lib/whisper/model/uri.rb index fca750278..27eaf794d 100644 --- a/bindings/ruby/lib/whisper/model/uri.rb +++ b/bindings/ruby/lib/whisper/model/uri.rb @@ -41,6 +41,8 @@ module Whisper def cache path = cache_path + return path if cache_path.exist? + headers = {} headers["if-modified-since"] = path.mtime.httpdate if path.exist? request @uri, headers