llm-chutes


Namellm-chutes JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryLLM plugin for models hosted by Chutes AI
upload_time2025-07-16 20:36:41
maintainerNone
docs_urlNone
authorRajashekar Chintalapati
requires_python>=3.9
licenseNone
keywords llm ai chutes language-models plugin
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # llm-chutes

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

[LLM](https://llm.datasette.io/) plugin for models hosted by [Chutes AI](https://chutes.ai/)

## Installation

First, [install the LLM command-line utility](https://llm.datasette.io/en/stable/setup.html).

Now install this plugin in the same environment as LLM.
```bash
llm install llm-chutes
```

## Configuration

You will need an API key from Chutes AI. You can obtain one from their platform.

You can set that as an environment variable called `CHUTES_API_KEY`, or add it to the `llm` set of saved keys using:

```bash
llm keys set chutes
```
```
Enter key: <paste key here>
```

## Usage

To list available models, run:
```bash
llm models list
```
You should see a list that looks something like this:
```
chutes: chutes/deepseek-ai/DeepSeek-R1
chutes: chutes/deepseek-ai/DeepSeek-V3-0324
chutes: chutes/NousResearch/DeepHermes-3-Mistral-24B-Preview
chutes: chutes/moonshotai/Kimi-K2-Instruct
chutes: chutes/Qwen/Qwen3-32B
...
```

To run a prompt against a model, pass its full model ID to the `-m` option, like this:
```bash
llm -m chutes/deepseek-ai/DeepSeek-R1 "Five spooky names for a pet tarantula"
```

You can set a shorter alias for a model using the `llm aliases` command like so:
```bash
llm aliases set deepseek chutes/deepseek-ai/DeepSeek-R1
```
Now you can prompt the model using:
```bash
llm -m deepseek "What is the meaning of life?"
```

### Listing models

The `llm models -q chutes` command will display all available models, or you can use this command to see more detailed information:

```bash
llm chutes models
```
Output starts like this:
```yaml
- id: deepseek-ai/DeepSeek-R1
  name: deepseek-ai/DeepSeek-R1
  context_length: 163,840
  supports_schema: True
  pricing: input $0.27216/M, output $0.27216/M

- id: deepseek-ai/DeepSeek-V3-0324
  name: deepseek-ai/DeepSeek-V3-0324
  context_length: 163,840
  supports_schema: True
  pricing: input $0.27216/M, output $0.27216/M
```

Add `--json` to get back JSON instead:
```bash
llm chutes models --json
```

### Refreshing models

To refresh the cached list of models from the Chutes AI API:

```bash
llm chutes refresh
```

## Development

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

## API Endpoint

This plugin connects to the Chutes AI API at `https://llm.chutes.ai/v1/`

## License

Apache License 2.0

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llm-chutes",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "llm, ai, chutes, language-models, plugin",
    "author": "Rajashekar Chintalapati",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/a2/e0/4f10ed87c9a24793b6da82cb4843a2079a40687ade69657680c16d231b73/llm_chutes-0.1.0.tar.gz",
    "platform": null,
    "description": "# llm-chutes\n\n[![PyPI](https://img.shields.io/pypi/v/llm-chutes.svg)](https://pypi.org/project/llm-chutes/)\n[![Changelog](https://img.shields.io/github/v/release/rajashekar/llm-chutes?include_prereleases&label=changelog)](https://github.com/rajashekar/llm-chutes/releases)\n[![Tests](https://github.com/rajashekar/llm-chutes/workflows/Test/badge.svg)](https://github.com/rajashekar/llm-chutes/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/rajashekar/llm-chutes/blob/main/LICENSE)\n\n[LLM](https://llm.datasette.io/) plugin for models hosted by [Chutes AI](https://chutes.ai/)\n\n## Installation\n\nFirst, [install the LLM command-line utility](https://llm.datasette.io/en/stable/setup.html).\n\nNow install this plugin in the same environment as LLM.\n```bash\nllm install llm-chutes\n```\n\n## Configuration\n\nYou will need an API key from Chutes AI. You can obtain one from their platform.\n\nYou can set that as an environment variable called `CHUTES_API_KEY`, or add it to the `llm` set of saved keys using:\n\n```bash\nllm keys set chutes\n```\n```\nEnter key: <paste key here>\n```\n\n## Usage\n\nTo list available models, run:\n```bash\nllm models list\n```\nYou should see a list that looks something like this:\n```\nchutes: chutes/deepseek-ai/DeepSeek-R1\nchutes: chutes/deepseek-ai/DeepSeek-V3-0324\nchutes: chutes/NousResearch/DeepHermes-3-Mistral-24B-Preview\nchutes: chutes/moonshotai/Kimi-K2-Instruct\nchutes: chutes/Qwen/Qwen3-32B\n...\n```\n\nTo run a prompt against a model, pass its full model ID to the `-m` option, like this:\n```bash\nllm -m chutes/deepseek-ai/DeepSeek-R1 \"Five spooky names for a pet tarantula\"\n```\n\nYou can set a shorter alias for a model using the `llm aliases` command like so:\n```bash\nllm aliases set deepseek chutes/deepseek-ai/DeepSeek-R1\n```\nNow you can prompt the model using:\n```bash\nllm -m deepseek \"What is the meaning of life?\"\n```\n\n### Listing models\n\nThe `llm models -q chutes` command will display all available models, or you can use this command to see more detailed information:\n\n```bash\nllm chutes models\n```\nOutput starts like this:\n```yaml\n- id: deepseek-ai/DeepSeek-R1\n  name: deepseek-ai/DeepSeek-R1\n  context_length: 163,840\n  supports_schema: True\n  pricing: input $0.27216/M, output $0.27216/M\n\n- id: deepseek-ai/DeepSeek-V3-0324\n  name: deepseek-ai/DeepSeek-V3-0324\n  context_length: 163,840\n  supports_schema: True\n  pricing: input $0.27216/M, output $0.27216/M\n```\n\nAdd `--json` to get back JSON instead:\n```bash\nllm chutes models --json\n```\n\n### Refreshing models\n\nTo refresh the cached list of models from the Chutes AI API:\n\n```bash\nllm chutes refresh\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd llm-chutes\npython3 -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\nllm install -e '.[test]'\n```\nTo run the tests:\n```bash\npytest\n```\n\n## API Endpoint\n\nThis plugin connects to the Chutes AI API at `https://llm.chutes.ai/v1/`\n\n## License\n\nApache License 2.0\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "LLM plugin for models hosted by Chutes AI",
    "version": "0.1.0",
    "project_urls": {
        "Changelog": "https://github.com/rajashekar/llm-chutes/releases",
        "Homepage": "https://github.com/rajashekar/llm-chutes",
        "Issues": "https://github.com/rajashekar/llm-chutes/issues"
    },
    "split_keywords": [
        "llm",
        " ai",
        " chutes",
        " language-models",
        " plugin"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "05ea5ba4271e2efb36b59b7978163c96236fa36ca5e16352e5633ea3d87dc1af",
                "md5": "a92abdd22a682f65966263f07d8b41a1",
                "sha256": "960c92677ca1b78cfa40cc2e7573963695b5fbafdad86c95be270b909c8a3e97"
            },
            "downloads": -1,
            "filename": "llm_chutes-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a92abdd22a682f65966263f07d8b41a1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 6043,
            "upload_time": "2025-07-16T20:36:40",
            "upload_time_iso_8601": "2025-07-16T20:36:40.246057Z",
            "url": "https://files.pythonhosted.org/packages/05/ea/5ba4271e2efb36b59b7978163c96236fa36ca5e16352e5633ea3d87dc1af/llm_chutes-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a2e04f10ed87c9a24793b6da82cb4843a2079a40687ade69657680c16d231b73",
                "md5": "64520e452c81c7047ea7694b59df8be1",
                "sha256": "5dc34daf156583275699d46c07532414576c096950f73e973772bc310f1fcbdd"
            },
            "downloads": -1,
            "filename": "llm_chutes-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "64520e452c81c7047ea7694b59df8be1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6927,
            "upload_time": "2025-07-16T20:36:41",
            "upload_time_iso_8601": "2025-07-16T20:36:41.423159Z",
            "url": "https://files.pythonhosted.org/packages/a2/e0/4f10ed87c9a24793b6da82cb4843a2079a40687ade69657680c16d231b73/llm_chutes-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-16 20:36:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rajashekar",
    "github_project": "llm-chutes",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "llm-chutes"
}
        
Elapsed time: 1.57941s