Skip to main content

LLM plugin for Gonka Broker - OpenAI-compatible access to open-source models on the decentralized Gonka network

Project description

llm-gonkabroker

LLM plugin for Gonka Broker — an OpenAI-compatible inference gateway to open-source models running on the decentralized Gonka network.

This is a plugin for Simon Willison's llm CLI/library. It is unrelated to LiteLLM.

Installation

Install this plugin in the same environment as LLM:

llm install llm-gonkabroker

Configuration

Get an API key from the app at gonkabroker.com (keys look like gnk-prx-...), then set it:

llm keys set gonkabroker
# paste your gnk-prx-... key

Or supply it via the GONKABROKER_API_KEY environment variable.

Usage

Models are discovered from the broker's public /v1/models endpoint once a key is configured. List them:

llm models list | grep -i gonka

Run a prompt (model ids are prefixed with gonkabroker/):

llm -m 'gonkabroker/MiniMaxAI/MiniMax-M2.7' 'Say hello in three words'

Pipe content in, start a chat, or use it from Python like any other LLM model:

cat article.md | llm -m 'gonkabroker/MiniMaxAI/MiniMax-M2.7' -s 'Summarize this'
llm chat -m 'gonkabroker/MiniMaxAI/MiniMax-M2.7'

Manual alternative (without this plugin)

Because Gonka Broker is OpenAI-compatible, you can also wire it up without the plugin by adding it to LLM's extra-openai-models.yaml:

- model_id: gonkabroker-minimax
  model_name: MiniMaxAI/MiniMax-M2.7
  api_base: https://proxy.gonkabroker.com/v1
  api_key_name: gonkabroker

The plugin is the convenient, auto-updating path; this manual route is the universal fallback.

Development

To set up this plugin locally, check out the repo and install it editable:

cd llm
llm 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

llm_gonkabroker-0.1.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

llm_gonkabroker-0.1.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_gonkabroker-0.1.2.tar.gz.

File metadata

  • Download URL: llm_gonkabroker-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for llm_gonkabroker-0.1.2.tar.gz
Algorithm Hash digest
SHA256 939d0d68aad358f95c0761c09be1368345badbc4661f8a726ed19080a21c3a0e
MD5 e3f12439a89a197464491865a818a4ef
BLAKE2b-256 b79ad997449fc217b324377e0e9f8bef6658c03b683eb3e89a1719741ea36be2

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_gonkabroker-0.1.2.tar.gz:

Publisher: publish-llm-gonkabroker.yml on gonkabroker/gonkabroker-integrations

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_gonkabroker-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_gonkabroker-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f67999b9b81e1bcc29e60bb98da14560293d79edd3cefb7f4c0774b71ea9f2
MD5 05b1d1f18368ed09785d2afd9e3f5469
BLAKE2b-256 27a83dcc133e731f2f286456b16dad5b212be31c86569d30ff4de5e763cd2baf

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_gonkabroker-0.1.2-py3-none-any.whl:

Publisher: publish-llm-gonkabroker.yml on gonkabroker/gonkabroker-integrations

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