Sha256: 42632c4595e159c103008e965b1e139ae20ec8f4e8432377288b9560d85f430a
Contents?: true
Size: 350 Bytes
Versions: 1
Compression:
Stored size: 350 Bytes
Contents
# frozen_string_literal: true module Ollama module API class Blobs def initialize(client:) @client = client end def create(digest) @client.post "/api/blobs/#{digest}" end def exists?(digest) response = @client.head "/api/blobs/#{digest}" response.ok? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ollama-rb-0.1.0 | lib/ollama/api/blobs.rb |