enum AI::Provider::ModelType

Overview

Enum representing the different types of AI models.

Defined in:

ai/provider/errors/no_such_model_error.cr

Enum Members

LanguageModel = 0
EmbeddingModel = 1
ImageModel = 2
TranscriptionModel = 3
SpeechModel = 4
RerankingModel = 5

Instance Method Summary

Instance Method Detail

def embedding_model? #

Returns true if this enum value equals EmbeddingModel


[View source]
def image_model? #

Returns true if this enum value equals ImageModel


[View source]
def language_model? #

Returns true if this enum value equals LanguageModel


[View source]
def reranking_model? #

Returns true if this enum value equals RerankingModel


[View source]
def speech_model? #

Returns true if this enum value equals SpeechModel


[View source]
def to_s : String #

Returns the camelCase string representation as used in the JS SDK.


[View source]
def transcription_model? #

Returns true if this enum value equals TranscriptionModel


[View source]