Metadata-Version: 2.4
Name: llm-minimax
Version: 0.1
Summary: LLM plugin for accessing MiniMax models via their API
Author: Simon Willison
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/simonw/llm-minimax
Project-URL: Changelog, https://github.com/simonw/llm-minimax/releases
Project-URL: Issues, https://github.com/simonw/llm-minimax/issues
Project-URL: CI, https://github.com/simonw/llm-minimax/actions
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: llm
Requires-Dist: llm-anthropic>=0.21.1
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# llm-minimax

[![PyPI](https://img.shields.io/pypi/v/llm-minimax.svg)](https://pypi.org/project/llm-minimax/)
[![Changelog](https://img.shields.io/github/v/release/simonw/llm-minimax?include_prereleases&label=changelog)](https://github.com/simonw/llm-minimax/releases)
[![Tests](https://github.com/simonw/llm-minimax/actions/workflows/test.yml/badge.svg)](https://github.com/simonw/llm-minimax/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/llm-minimax/blob/main/LICENSE)

LLM plugin for accessing MiniMax models via their API

## Installation

Install this plugin in the same environment as [LLM](https://llm.datasette.io/).
```bash
llm install llm-minimax
```
## Usage

Obtain an API key for MiniMax from [their API platform site](https://platform.minimax.io/user-center/basic-information/interface-key).

Set the API key using:
```bash
llm keys set minimax
# Paste key here
```
Run MiniMax M2 like this:
```bash
llm -m m2 "Tell me about yourself"
```
## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd llm-minimax
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
python -m pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```
