Sha256: fabdbd683bf9673775c7124508e24206fde016174ab64b3897b09ec51b622012

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module Roseflow
  module Text
    class Completion
      def initialize(input)
        @input = input
      end

      # Creates a new completion for the given input.
      def call(model:, prompt:, **options)
        provider.completions(model: model, prompt: @input, **options).choices
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roseflow-0.1.0 lib/roseflow/text/completion.rb