Sha256: b16176cc40ef626659a240e69fff95bdc3f1ee31a790233770d0e99ea120caaa
Contents?: true
Size: 1 KB
Versions: 55
Compression:
Stored size: 1 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 CustomCredentialsType OPENAI = "OPENAI".freeze COHERE = "COHERE".freeze AZURE_OPENAI = "AZURE_OPENAI".freeze AZURE_OPENAI_V3 = "AZURE_OPENAI_V3".freeze UPSTAGE = "UPSTAGE".freeze def self.all_vars @all_vars ||= [OPENAI, COHERE, AZURE_OPENAI, AZURE_OPENAI_V3, UPSTAGE].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 CustomCredentialsType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #CustomCredentialsType" end end end
Version data entries
55 entries across 55 versions & 1 rubygems