Sha256: c1b1e0675629240ebf77ff613bc7385a05627156e04d8fa805706897a581b9d7

Contents?: true

Size: 488 Bytes

Versions: 14

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

module GenAI
  class Language
    class Base < GenAI::Base
      DEFAULT_ROLE = 'user'

      def embed(...)
        raise NotImplementedError, "#{self.class.name} does not support embedding"
      end

      def complete(...)
        raise NotImplementedError, "#{self.class.name} does not support completion"
      end

      def chat(...)
        raise NotImplementedError, "#{self.class.name} does not support conversations"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gen-ai-0.4.3 lib/gen_ai/language/base.rb
gen-ai-0.4.2 lib/gen_ai/language/base.rb
gen-ai-0.4.1 lib/gen_ai/language/base.rb
gen-ai-0.4.0 lib/gen_ai/language/base.rb
gen-ai-0.4.0.alpha.3 lib/gen_ai/language/base.rb
gen-ai-0.4.0.alpha.2 lib/gen_ai/language/base.rb
gen-ai-0.4.0.alpha.1 lib/gen_ai/language/base.rb
gen-ai-0.3.2 lib/gen_ai/language/base.rb
gen-ai-0.3.1 lib/gen_ai/language/base.rb
gen-ai-0.3.0 lib/gen_ai/language/base.rb
gen-ai-0.2.3 lib/gen_ai/language/base.rb
gen-ai-0.2.2 lib/gen_ai/language/base.rb
gen-ai-0.2.1 lib/gen_ai/language/base.rb
gen-ai-0.2.0 lib/gen_ai/language/base.rb