ModelType

class ModelType(UnifiedModelType, Enum):

str

def __str__(self):

new

def __new__(cls, value):

from_name

def from_name(cls, name):

Returns the ModelType enum value from a string.

value_for_tiktoken

def value_for_tiktoken(self):

support_native_structured_output

def support_native_structured_output(self):

support_native_tool_calling

def support_native_tool_calling(self):

is_openai

def is_openai(self):

Returns whether this type of models is an OpenAI-released model.

is_aws_bedrock

def is_aws_bedrock(self):

Returns whether this type of models is an AWS Bedrock model.

is_azure_openai

def is_azure_openai(self):

Returns whether this type of models is an OpenAI-released model from Azure.

is_zhipuai

def is_zhipuai(self):

Returns whether this type of models is an ZhipuAI model.

is_anthropic

def is_anthropic(self):

Returns:

bool: Whether this type of models is anthropic.

is_groq

def is_groq(self):

Returns whether this type of models is served by Groq.

is_openrouter

def is_openrouter(self):

Returns whether this type of models is served by OpenRouter.

is_lmstudio

def is_lmstudio(self):

Returns whether this type of models is served by LMStudio.

is_together

def is_together(self):

Returns whether this type of models is served by Together AI.

is_sambanova

def is_sambanova(self):

Returns whether this type of model is served by SambaNova AI.

is_mistral

def is_mistral(self):

Returns whether this type of models is served by Mistral.

is_nvidia

def is_nvidia(self):

Returns whether this type of models is a NVIDIA model.

is_gemini

def is_gemini(self):

Returns:

bool: Whether this type of models is gemini.

is_reka

def is_reka(self):

Returns:

bool: Whether this type of models is Reka.

is_cohere

def is_cohere(self):

Returns:

bool: Whether this type of models is Cohere.

is_yi

def is_yi(self):

Returns:

bool: Whether this type of models is Yi.

is_qwen

def is_qwen(self):

is_deepseek

def is_deepseek(self):

is_netmind

def is_netmind(self):

is_ppio

def is_ppio(self):

is_internlm

def is_internlm(self):

is_modelscope

def is_modelscope(self):

is_moonshot

def is_moonshot(self):

is_sglang

def is_sglang(self):

is_siliconflow

def is_siliconflow(self):

is_watsonx

def is_watsonx(self):

is_novita

def is_novita(self):

is_aiml

def is_aiml(self):

token_limit

def token_limit(self):

Returns:

int: The maximum token limit for the given model.

EmbeddingModelType

class EmbeddingModelType(Enum):

is_openai

def is_openai(self):

Returns whether this type of models is an OpenAI-released model.

is_jina

def is_jina(self):

Returns whether this type of models is an Jina model.

is_mistral

def is_mistral(self):

Returns whether this type of models is an Mistral-released model.

is_gemini

def is_gemini(self):

Returns whether this type of models is an Gemini-released model.

output_dim

def output_dim(self):

GeminiEmbeddingTaskType

class GeminiEmbeddingTaskType(str, Enum):

Task types for Gemini embedding models.

For more information, please refer to: https://ai.google.dev/gemini-api/docs/embeddings#task-types

VectorDistance

class VectorDistance(Enum):

Distance metrics used in a vector database.

OpenAIImageType

class OpenAIImageType(Enum):

Image types supported by OpenAI vision model.

ModelPlatformType

class ModelPlatformType(Enum):

from_name

def from_name(cls, name):

Returns the ModelPlatformType enum value from a string.

is_openai

def is_openai(self):

Returns whether this platform is openai.

is_aws_bedrock

def is_aws_bedrock(self):

Returns whether this platform is aws-bedrock.

is_azure

def is_azure(self):

Returns whether this platform is azure.

is_anthropic

def is_anthropic(self):

Returns whether this platform is anthropic.

is_groq

def is_groq(self):

Returns whether this platform is groq.

is_openrouter

def is_openrouter(self):

Returns whether this platform is openrouter.

is_lmstudio

def is_lmstudio(self):

Returns whether this platform is lmstudio.

is_ollama

def is_ollama(self):

Returns whether this platform is ollama.

is_vllm

def is_vllm(self):

Returns whether this platform is vllm.

is_sglang

def is_sglang(self):

Returns whether this platform is sglang.

is_together

def is_together(self):

Returns whether this platform is together.

is_litellm

def is_litellm(self):

Returns whether this platform is litellm.

is_zhipuai

def is_zhipuai(self):

Returns whether this platform is zhipu.

is_mistral

def is_mistral(self):

Returns whether this platform is mistral.

is_openai_compatible_model

def is_openai_compatible_model(self):

Returns whether this is a platform supporting openai compatibility

is_gemini

def is_gemini(self):

Returns whether this platform is Gemini.

is_reka

def is_reka(self):

Returns whether this platform is Reka.

is_samba

def is_samba(self):

Returns whether this platform is Samba Nova.

is_cohere

def is_cohere(self):

Returns whether this platform is Cohere.

is_yi

def is_yi(self):

Returns whether this platform is Yi.

is_qwen

def is_qwen(self):

Returns whether this platform is Qwen.

is_nvidia

def is_nvidia(self):

Returns whether this platform is Nvidia.

is_deepseek

def is_deepseek(self):

Returns whether this platform is DeepSeek.

is_netmind

def is_netmind(self):

Returns whether this platform is Netmind.

is_ppio

def is_ppio(self):

Returns whether this platform is PPIO.

is_internlm

def is_internlm(self):

Returns whether this platform is InternLM.

is_moonshot

def is_moonshot(self):

Returns whether this platform is Moonshot model.

is_modelscope

def is_modelscope(self):

Returns whether this platform is ModelScope model.

is_siliconflow

def is_siliconflow(self):

Returns whether this platform is SiliconFlow.

is_aiml

def is_aiml(self):

Returns whether this platform is AIML.

is_volcano

def is_volcano(self):

Returns whether this platform is volcano.

is_novita

def is_novita(self):

Returns whether this platform is Novita.

is_watsonx

def is_watsonx(self):

Returns whether this platform is WatsonX.

AudioModelType

class AudioModelType(Enum):

is_openai

def is_openai(self):

Returns whether this type of audio models is an OpenAI-released model.

VoiceType

class VoiceType(Enum):

is_openai

def is_openai(self):

Returns whether this type of voice is an OpenAI-released voice.