Sha256: 79d732ee16410807b827891b56df579d3c0f8af74ccdb79c9d51e09a2a565ba2

Contents?: true

Size: 196 Bytes

Versions: 20

Compression:

Stored size: 196 Bytes

Contents

class Ollama::Handlers::DumpJSON
  include Ollama::Handlers::Concern

  def call(response)
    @output.puts JSON::pretty_generate(response, allow_nan: true, max_nesting: false)
    self
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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