Skip to main content

ModelType

str

repr

new

from_name

Returns the ModelType enum value from a string.

value_for_tiktoken

support_native_structured_output

support_native_tool_calling

is_openai

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

is_amd

Returns whether this type of models is a AMD model.

is_aws_bedrock

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

is_azure_openai

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

is_zhipuai

Returns whether this type of models is a ZhipuAI model.

is_anthropic

Returns: bool: Whether this type of models is anthropic.

is_groq

Returns whether this type of models is served by Groq.

is_cerebras

Returns whether this type of models is served by Cerebras.

is_nebius

Returns whether this type of models is served by Nebius AI Studio.

is_cometapi

Returns whether this type of models is served by CometAPI.

is_openrouter

Returns whether this type of models is served by OpenRouter.

is_lmstudio

Returns whether this type of models is served by LMStudio.

is_together

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

is_sambanova

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

is_mistral

Returns whether this type of models is served by Mistral.

is_nvidia

Returns whether this type of models is a NVIDIA model.

is_gemini

Returns: bool: Whether this type of models is gemini.

is_reka

Returns: bool: Whether this type of models is Reka.

is_cohere

Returns: bool: Whether this type of models is Cohere.

is_yi

Returns: bool: Whether this type of models is Yi.

is_qwen

is_deepseek

is_netmind

is_ppio

is_internlm

is_modelscope

is_moonshot

is_sglang

is_siliconflow

is_watsonx

is_qianfan

is_novita

is_crynux

is_aiml

is_atlascloud

Returns whether this type of models is served by AtlasCloud.

token_limit

Returns: int: The maximum token limit for the given model.

EmbeddingModelType

is_openai

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

is_jina

Returns whether this type of models is an Jina model.

is_mistral

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

is_gemini

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

output_dim

GeminiEmbeddingTaskType

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

VectorDistance

Distance metrics used in a vector database.

OpenAIImageType

Image types supported by OpenAI vision model.

ModelPlatformType

from_name

Returns the ModelPlatformType enum value from a string.

is_openai

Returns whether this platform is openai.

is_aws_bedrock

Returns whether this platform is aws-bedrock.

is_azure

Returns whether this platform is azure.

is_anthropic

Returns whether this platform is anthropic.

is_groq

Returns whether this platform is groq.

is_openrouter

Returns whether this platform is openrouter.

is_lmstudio

Returns whether this platform is lmstudio.

is_ollama

Returns whether this platform is ollama.

is_vllm

Returns whether this platform is vllm.

is_sglang

Returns whether this platform is sglang.

is_together

Returns whether this platform is together.

is_litellm

Returns whether this platform is litellm.

is_zhipuai

Returns whether this platform is zhipu.

is_mistral

Returns whether this platform is mistral.

is_openai_compatible_model

Returns whether this is a platform supporting openai compatibility

is_gemini

Returns whether this platform is Gemini.

is_reka

Returns whether this platform is Reka.

is_samba

Returns whether this platform is Samba Nova.

is_cohere

Returns whether this platform is Cohere.

is_yi

Returns whether this platform is Yi.

is_qwen

Returns whether this platform is Qwen.

is_nvidia

Returns whether this platform is Nvidia.

is_deepseek

Returns whether this platform is DeepSeek.

is_netmind

Returns whether this platform is Netmind.

is_ppio

Returns whether this platform is PPIO.

is_internlm

Returns whether this platform is InternLM.

is_moonshot

Returns whether this platform is Moonshot model.

is_modelscope

Returns whether this platform is ModelScope model.

is_siliconflow

Returns whether this platform is SiliconFlow.

is_aiml

Returns whether this platform is AIML.

is_volcano

Returns whether this platform is volcano.

is_novita

Returns whether this platform is Novita.

is_watsonx

Returns whether this platform is WatsonX.

is_crynux

Returns whether this platform is Crynux.

is_aihubmix

Returns whether this platform is AihubMix.

is_minimax

Returns whether this platform is Minimax M2.

is_cerebras

Returns whether this platform is Cerebras.

is_atlascloud

Returns whether this platform is AtlasCloud.

AudioModelType

is_openai

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

VoiceType

is_openai

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

JinaRerankerModelType

Model types for Jina AI Reranker. These models are available through the Jina AI Reranker API for re-ranking documents based on their relevance to a query. For more information, please refer to: https://jina.ai/reranker/