Sha256: 043f5f601b8a86f32247616e80091f39c9f6f5867efccb3df57ab25485de930f

Contents?: true

Size: 376 Bytes

Versions: 20

Compression:

Stored size: 376 Bytes

Contents

class Ollama::Commands::Ps
  def self.path
    '/api/ps'
  end

  def initialize(**parameters)
    parameters.empty? or raise ArgumentError,
      "Invalid parameters: #{parameters.keys * ' '}"
    @stream = false
  end

  attr_reader :stream

  attr_writer :client

  def perform(handler)
    @client.request(method: :get, path: self.class.path, stream:, handler:)
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ollama-ruby-0.12.1 lib/ollama/commands/ps.rb
ollama-ruby-0.12.0 lib/ollama/commands/ps.rb
ollama-ruby-0.11.0 lib/ollama/commands/ps.rb
ollama-ruby-0.10.0 lib/ollama/commands/ps.rb
ollama-ruby-0.9.3 lib/ollama/commands/ps.rb
ollama-ruby-0.9.2 lib/ollama/commands/ps.rb
ollama-ruby-0.9.1 lib/ollama/commands/ps.rb
ollama-ruby-0.9.0 lib/ollama/commands/ps.rb
ollama-ruby-0.8.0 lib/ollama/commands/ps.rb
ollama-ruby-0.7.0 lib/ollama/commands/ps.rb
ollama-ruby-0.6.0 lib/ollama/commands/ps.rb
ollama-ruby-0.5.0 lib/ollama/commands/ps.rb
ollama-ruby-0.4.0 lib/ollama/commands/ps.rb
ollama-ruby-0.3.2 lib/ollama/commands/ps.rb
ollama-ruby-0.3.1 lib/ollama/commands/ps.rb
ollama-ruby-0.3.0 lib/ollama/commands/ps.rb
ollama-ruby-0.2.0 lib/ollama/commands/ps.rb
ollama-ruby-0.1.0 lib/ollama/commands/ps.rb
ollama-ruby-0.0.1 lib/ollama/commands/ps.rb
ollama-ruby-0.0.0 lib/ollama/commands/ps.rb