Sha256: 9b5cb4870c7c54b2917dd546daba88ce7062bfb039d9d36955714f11774517cb

Contents?: true

Size: 1.79 KB

Versions: 19

Compression:

Stored size: 1.79 KB

Contents

=begin
#Carbon

#Connect external data to LLMs, no matter the source.

The version of the OpenAPI document: 1.0.0
=end

require 'date'
require 'time'

module Carbon
  class EmbeddingGenerators
    OPENAI = "OPENAI".freeze
    AZURE_OPENAI = "AZURE_OPENAI".freeze
    AZURE_ADA_LARGE_256 = "AZURE_ADA_LARGE_256".freeze
    AZURE_ADA_LARGE_1024 = "AZURE_ADA_LARGE_1024".freeze
    AZURE_ADA_LARGE_3072 = "AZURE_ADA_LARGE_3072".freeze
    AZURE_ADA_SMALL_512 = "AZURE_ADA_SMALL_512".freeze
    AZURE_ADA_SMALL_1536 = "AZURE_ADA_SMALL_1536".freeze
    COHERE_MULTILINGUAL_V3 = "COHERE_MULTILINGUAL_V3".freeze
    VERTEX_MULTIMODAL = "VERTEX_MULTIMODAL".freeze
    OPENAI_ADA_LARGE_256 = "OPENAI_ADA_LARGE_256".freeze
    OPENAI_ADA_LARGE_1024 = "OPENAI_ADA_LARGE_1024".freeze
    OPENAI_ADA_LARGE_3072 = "OPENAI_ADA_LARGE_3072".freeze
    OPENAI_ADA_SMALL_512 = "OPENAI_ADA_SMALL_512".freeze
    OPENAI_ADA_SMALL_1536 = "OPENAI_ADA_SMALL_1536".freeze

    def self.all_vars
      @all_vars ||= [OPENAI, AZURE_OPENAI, AZURE_ADA_LARGE_256, AZURE_ADA_LARGE_1024, AZURE_ADA_LARGE_3072, AZURE_ADA_SMALL_512, AZURE_ADA_SMALL_1536, COHERE_MULTILINGUAL_V3, VERTEX_MULTIMODAL, OPENAI_ADA_LARGE_256, OPENAI_ADA_LARGE_1024, OPENAI_ADA_LARGE_3072, OPENAI_ADA_SMALL_512, OPENAI_ADA_SMALL_1536].freeze
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      return value if EmbeddingGenerators.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #EmbeddingGenerators"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
carbon_ruby_sdk-0.1.23 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.22 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.21 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.20 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.19 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.18 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.17 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.16 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.15 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.14 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.13 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.12 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.11 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.10 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.9 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.8 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.7 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.6 lib/carbon_ruby_sdk/models/embedding_generators.rb
carbon_ruby_sdk-0.1.5 lib/carbon_ruby_sdk/models/embedding_generators.rb