docs/components/llms/overview.mdx
Mem0 includes built-in support for various popular large language models. Memory can utilize the LLM provided by the user, ensuring efficient use for specific needs.
To use a llm, you must provide a configuration to customize its usage. If no configuration is supplied, a default configuration will be applied, and OpenAI will be used as the llm.
For a comprehensive list of available parameters for llm configuration, please refer to Config.
See the list of supported LLMs below.
<Note> All LLMs are supported in Python. The following LLMs are also supported in TypeScript: **OpenAI**, **Anthropic**, and **Groq**. </Note> <CardGroup cols={4}> <Card title="OpenAI" href="/components/llms/models/openai" /> <Card title="Ollama" href="/components/llms/models/ollama" /> <Card title="Azure OpenAI" href="/components/llms/models/azure_openai" /> <Card title="Anthropic" href="/components/llms/models/anthropic" /> <Card title="Together" href="/components/llms/models/together" /> <Card title="Groq" href="/components/llms/models/groq" /> <Card title="Litellm" href="/components/llms/models/litellm" /> <Card title="Mistral AI" href="/components/llms/models/mistral_AI" /> <Card title="Google AI" href="/components/llms/models/google_AI" /> <Card title="AWS bedrock" href="/components/llms/models/aws_bedrock" /> <Card title="DeepSeek" href="/components/llms/models/deepseek" /> <Card title="MiniMax" href="/components/llms/models/minimax" /> <Card title="xAI" href="/components/llms/models/xAI" /> <Card title="Sarvam AI" href="/components/llms/models/sarvam" /> <Card title="LM Studio" href="/components/llms/models/lmstudio" /> <Card title="Langchain" href="/components/llms/models/langchain" /> </CardGroup>Mem0 supports two types of OpenAI LLM formats, each with its own strengths and use cases:
Structured outputs are LLMs that align with OpenAI's structured outputs model:
Unstructured outputs correspond to OpenAI's standard, free-form text model:
response_format parameter to guide outputChoose the format that best suits your application's requirements for optimal performance and usability.