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.1.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.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_gonkabroker-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c2d647cc86bef8c75ad2bdc7ebb325ee8d2d51256f608793ec41e668f744d269
MD5 c1e2f43870554be7bef8f463fc47a408
BLAKE2b-256 cdbaa6594e49975aac951269559545144fe015f318afb1b4b43667df8c1458af

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_gonkabroker-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_gonkabroker-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26e199ee57716c93f5480c3faa1f59da06542c1dd023f7b3f4ea5ccf2f396f8b
MD5 77fd41b65af4b2829af7f26956fb3ad5
BLAKE2b-256 1a131b330634e21bcdbebbe6e25289c94249b470e1ce64c50e9264b7c5a0520a

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_gonkabroker-0.1.1-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