nc://aihubmix

v0.1.0Pinned
ThomSharkproviders/nodecode-aihubmix: AIHubMix's 400+ OpenAI-compatible models as a provider, with the picker filtered to tool-capable routes. - a rewrite of AIhubmix/hermes-provider-aihubmix (MIT), credited to AIhubmix8c7dced· 9 Nov1 commit
test1 fileprovider.lisp7.3 KB

nodecode-aihubmix

AIHubMix: 400+ OpenAI-compatible models as a Nodecode provider, with the model picker filtered to the routes that can call tools. A Nodecode rewrite of AIhubmix/hermes-provider-aihubmix by AIhubmix.

Get it

Tell the agent "add the aihubmix cell", or run nodecode add nc://aihubmix.

Set it up

Make a key at https://aihubmix.com/token. Save it with /connect (pick AIHubMix), or set AIHUBMIX_API_KEY in the environment; a saved key answers first.

Optional, and rarely needed — the section is on unless it says "enabled": false:

{
  "aihubmix": {
    // where the OpenAI-compatible API is served; a relay's address goes here
    "base_url": "https://aihubmix.com/v1"
  }
}

Use it

/models lists AIHubMix's models, and a turn on one goes to https://aihubmix.com/v1/chat/completions.

AIHubMix fronts many upstream backends and publishes no capabilities on its plain model list, so the cell reads the capability-annotated catalog at https://aihubmix.com/api/v1/models?types=llm and keeps only the entries advertising tools or function_calling — either marker alone qualifies, because requiring both would hide about a third of the agentic catalog. A model that cannot call tools is dead weight in an agent's picker.

When that catalog is unreachable, the picker falls back to a curated list of tool-capable flagships, so an offline start still fills it. A base_url other than AIHubMix's own means a proxy or a self-hosted relay, whose catalog is not AIHubMix's to interpret, so the curated list answers there too.

Test

From this repository's root:

.github/test-cell.sh providers/nodecode-aihubmix

MIT licensed — see LICENSE. Ported from the original plugin; see NOTICE.

Add nc://aihubmix

  1. 1

    Install Nodecode

    Once per machine.

    $ curl -fsSL https://nodecode.ai/install.sh | sh
  2. 2

    Add the cell

    Pinned at 8c7dced.

    $ nodecode add nc://aihubmix

    Or tell the agent add the aihubmix cell.