llama-index llms minimax integration
Project description
LlamaIndex Llms Integration: MiniMax
This is the MiniMax integration for LlamaIndex. Visit MiniMax for information on how to get an API key and which models are supported.
Installation
pip install llama-index-llms-minimax
Usage
from llama_index.llms.minimax import MiniMax
llm = MiniMax(model="MiniMax-M2.7", api_key="your-api-key")
response = llm.complete("Explain the importance of low latency LLMs")
print(response)
Available Models
| Model | Description |
|---|---|
MiniMax-M2.7 |
Latest flagship model with enhanced reasoning and coding |
MiniMax-M2.7-highspeed |
High-speed version of M2.7 for low-latency scenarios |
MiniMax-M2.5 |
Peak Performance. Ultimate Value. Master the Complex. |
MiniMax-M2.5-highspeed |
Same performance, faster and more agile. |
Both models support a 204,800-token context window.
Environment Variables
You can set the MINIMAX_API_KEY environment variable instead of passing api_key directly:
export MINIMAX_API_KEY="your-api-key"
from llama_index.llms.minimax import MiniMax
llm = MiniMax(model="MiniMax-M2.7")
Custom Base URL
For users in mainland China, use the domestic API endpoint:
llm = MiniMax(
model="MiniMax-M2.7",
api_base="https://api.minimaxi.com/v1",
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_llms_minimax-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_llms_minimax-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41e140fc44162de38f5bbf2d337bd12d080b50b6b16357140fcf2391a11ae845
|
|
| MD5 |
946dcf32c0904eaabd107b6b30328054
|
|
| BLAKE2b-256 |
236150817d1300ade9bdd47a70f136865ae9490949a9f14d3a9430b86955c2b4
|
File details
Details for the file llama_index_llms_minimax-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_llms_minimax-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffec9ba70faf37c3830392d277aad69a164484fa7ffdf4b107cb5f56931b6910
|
|
| MD5 |
d8c285f725c15105f95cce84fb162af2
|
|
| BLAKE2b-256 |
95152cd6278d5891411ded4cdbe8aa25467e6fdcc11a2e610eca22f9784186d8
|