Run prompts against LLMs hosted by Moonshot
Project description
llm-moonshot
LLM plugin for Moonshot AI’s models
LLM plugin for models hosted by Moonshot AI.
Installation
First, install the LLM command-line utility.
Now install this plugin in the same environment as LLM:
llm install llm-moonshot
Configuration
You’ll need an API key from Moonshot. Grab one at platform.moonshot.cn.
Set secret key:
llm keys set moonshot
Enter key: <paste key here>
Usage
List what’s on the menu:
llm models list
You’ll see something like:
Moonshot: moonshot/kimi-latest
Moonshot: moonshot/moonshot-v1-auto
Moonshot: moonshot/moonshot-v1-128k-vision-preview
Moonshot: moonshot/kimi-k2-0711-preview
Moonshot: moonshot/moonshot-v1-128k
Moonshot: moonshot/moonshot-v1-32k-vision-preview
Moonshot: moonshot/moonshot-v1-8k-vision-preview
Moonshot: moonshot/moonshot-v1-8k
Moonshot: moonshot/kimi-thinking-preview
Moonshot: moonshot/moonshot-v1-32k
...
Fire up a chat:
llm chat -m moonshot/kimi-k2-0711-preview
Chatting with moonshot/kimi-k2-0711-preview
Type 'exit' or 'quit' to exit
Type '!multi' to enter multiple lines, then '!end' to finish
> yo moonie
yo! what’s up, moonie?
>
Need raw completion?
llm -m moonshot/moonshot-v1-8k "Finish this haiku: Neon city rain"
Neon city rain,
Glistening streets, a symphony,
Echoes of the night.
Aliases
Save your wrists:
llm aliases set kimi moonshot/kimi-latest
Now:
llm -m kimi "write a haiku about the AI chatbot Sidney is misbehaving"
Development
Clone, venv, deps—same dance:
git clone https://github.com/ghostofpokemon/llm-moonshot.git
cd llm-moonshot
python3 -m venv venv
source venv/bin/activate
pip install -e .
Project details
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 llm_moonshot-0.2.2.tar.gz.
File metadata
- Download URL: llm_moonshot-0.2.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8167f9c5b4b7f241afb07b8d09c329c0530d7ec32385a18c0b0bf55fe7a81ddf
|
|
| MD5 |
c1af47ac45cf6c20e9415d58066dce5e
|
|
| BLAKE2b-256 |
31a8c98dbf6d1b7e584f78320d0640c8b27d244ae69f3a72e07d4396848647de
|
File details
Details for the file llm_moonshot-0.2.2-py3-none-any.whl.
File metadata
- Download URL: llm_moonshot-0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1509a155ad44bc03f02e23898e1392a098846f245001cd61516f98286128c6b4
|
|
| MD5 |
19a57479d2afcadfa43f9b98b51ab9da
|
|
| BLAKE2b-256 |
d0baf43c9802e8e154076b198964ae520c75aca1b2ea6ca8f6f848c940769c3f
|