LLM access to models served by 1minAI
Project description
llm-1min
LLM plugin providing access to 1minAI models using their API
Installation
Install this plugin in the same environment as LLM.
llm install llm-1min
Usage
First, set an API key for 1minAI:
llm keys set 1minai
# Paste the key here
You can also set the API key by assigning it to the environment variable ONEMINAI_API_KEY.
Run llm models to list the models, and llm models --options to include a list of their options.
Run llm models default 1min/gpt-4o to set gpt-4o as the default model.
Run prompts like this:
llm -m 1min/gtp-4o "How many push-ups can Chuck Norris do?"
llm -m 1min/o3-mini "How much wood would a woodchuck chuck if the woodchuck would chuck Chuck Norris?"
llm -m 1min/claude-3-5-haiku-20241022 "What's the meaning of life?"
Currently supported models
- 1min/gpt-4o
- 1min/gpt-4o-mini
- 1min/gpt-4-turbo
- 1min/gpt-4
- 1min/gpt-3.5-turbo
- 1min/o1-preview
- 1min/o1-mini
- 1min/o3-mini
- 1min/mistral-large-latest
- 1min/mistral-small-latest
- 1min/mistral-nemo
- 1min/claude-3-opus-20240229
- 1min/claude-3-5-sonnet-20240620
- 1min/claude-3-5-haiku-20241022
- 1min/gemini-1.5-pro
- 1min/gemini-1.5-flash
- 1min/deepseek-chat
- 1min/grok-2
- 1min/command
- 1min/meta/meta-llama-3.1-405b-instruct
To Do
- Add support for conversations
- Add support for other 1minAI features (e.g. code, content, image, and audio generation, translation, content transformation, etc.)
- Improve error handling
Caveats
1minAI API is not similar to any other LLM provider. It does not support message arrays with different roles. Conversations must be started with a separate API call. Therefore, the llm chat command will probably not be supported, and the conversation feature will be implemented as a separate command.
Contributing
Contributions are welcome, feel free to submit a PR.
This plugin was made after the llm-anthropic and other plugins by Simon Willison.
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_1min-0.1.1.tar.gz.
File metadata
- Download URL: llm_1min-0.1.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09e35db51f2ef3d0025365ec522537fcb5ec3881a614b3b0e0ba0edf598c9518
|
|
| MD5 |
9e46933f6607114f8a3d763ca4765fe4
|
|
| BLAKE2b-256 |
4bccabcb94397d59926abec66c066617318ebafb92df18cbddb7dd9de42b997a
|
Provenance
The following attestation bundles were made for llm_1min-0.1.1.tar.gz:
Publisher:
publish.yml on SasaCetkovic/llm-1min
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_1min-0.1.1.tar.gz -
Subject digest:
09e35db51f2ef3d0025365ec522537fcb5ec3881a614b3b0e0ba0edf598c9518 - Sigstore transparency entry: 174354418
- Sigstore integration time:
-
Permalink:
SasaCetkovic/llm-1min@dff08ed69a8702d78b2a73e8ceb8436123456c6a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/SasaCetkovic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dff08ed69a8702d78b2a73e8ceb8436123456c6a -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_1min-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llm_1min-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eb9d4ea27724dca644bf6ae6029fe607eb6e5e595acb08c6f8a1bea62423340
|
|
| MD5 |
4a03bfc159f009f11aa12fc7a672fd5a
|
|
| BLAKE2b-256 |
56c3e51a1777a1901667a0d152640cb7853a3178835d2ac0d719a41dbe0968a7
|
Provenance
The following attestation bundles were made for llm_1min-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on SasaCetkovic/llm-1min
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_1min-0.1.1-py3-none-any.whl -
Subject digest:
3eb9d4ea27724dca644bf6ae6029fe607eb6e5e595acb08c6f8a1bea62423340 - Sigstore transparency entry: 174354420
- Sigstore integration time:
-
Permalink:
SasaCetkovic/llm-1min@dff08ed69a8702d78b2a73e8ceb8436123456c6a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/SasaCetkovic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dff08ed69a8702d78b2a73e8ceb8436123456c6a -
Trigger Event:
release
-
Statement type: