Skip to main content

LLM access to models served by 1minAI

Project description

llm-1min

PyPI Changelog License

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/pixtral-12b
  • 1min/claude-3-opus-20240229
  • 1min/claude-3-7-sonnet-20250219
  • 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/deepseek-reasoner
  • 1min/grok-2
  • 1min/command
  • 1min/sonar
  • 1min/sonar-pro
  • 1min/sonar-reasoning
  • 1min/sonar-reasoning-pro
  • 1min/meta/meta-llama-3.1-405b-instruct
  • 1min/meta/meta-llama-3-70b-instruct
  • 1min/meta/llama-2-70b-chat

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

llm_1min-0.1.4.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_1min-0.1.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file llm_1min-0.1.4.tar.gz.

File metadata

  • Download URL: llm_1min-0.1.4.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_1min-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7760330171ae0d862e761f869873e01db9a62e074c7437fcdd58dbd55ffa14b5
MD5 afba25e4c56d7ebd4ca673fe3bfb5992
BLAKE2b-256 086f137f79b4f3f123a48bdc9b2e0ffcf8b231cc1ca760ea67933c1a56a4fad5

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_1min-0.1.4.tar.gz:

Publisher: publish.yml on SasaCetkovic/llm-1min

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_1min-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: llm_1min-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_1min-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8c5355045e0a5906eb5377b5f6b51d02c25131b17758a5c81552e102a8861d48
MD5 0f8deda3e60e79c7877e4a1834555451
BLAKE2b-256 68049b24ef4b5ff04a4535a48318f32f54b1db0e9e05c17585058d1f2c022bdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_1min-0.1.4-py3-none-any.whl:

Publisher: publish.yml on SasaCetkovic/llm-1min

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page