Skip to content

v1.0.0

Choose a tag to compare

@budhajeewa budhajeewa released this 19 Nov 20:51
· 1 commit to master since this release
c073649

v1.0.0

Initial release of opencode-model-refresh: a multi-provider OpenCode plugin that reconciles model pickers with live provider APIs.

Highlights

  • Reconciles configured providers with their live /models endpoints.
  • Probes model availability with minimal chat completions.
  • Distinguishes definite refusals from inconclusive results such as timeouts, 429, and 5xx.
  • Removes only definitely refused models; inconclusive probes never remove models.
  • Applies a wipe guard when every live probe fails.
  • Supports multiple providers with per-provider adapters, verdict caches, timers, and status reports.
  • Reuses OpenCode’s existing provider credentials; the plugin has no apiKey option.
  • Endpoints come only from provider settings.baseURL.
  • Adds /refresh-models and /refresh-models-force for Desktop and TUI.
  • Refresh commands run through RPC and do not create sessions or wake the model.
  • Persists status reports and per-provider change timelines under ~/.local/state/opencode/com.a2way.opencode-model-refresh/.

Included adapters

  • nvidia: NVIDIA NIM dialect handling
  • opencode: OpenCode hosted inference free tier

Installation

From npm:

opencode plugin add opencode-model-refresh

From GitHub:

opencode plugin add github:a2way-com/opencode-model-refresh

Notes

  • With no providers option, the plugin does nothing.
  • Built-in adapters are registered in src/index.ts.
  • Desktop slash commands are provided by the prebuilt dist/gui-experimental.cjs bundle.