@mcowger/opencode-plexus 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -227,7 +227,7 @@ Models with a falsy `id` are skipped. Missing metadata falls back to safe defaul
227
227
 
228
228
  ## Adapter behavior
229
229
 
230
- - **pi** refreshes on session start and through `/plexus refresh`. It accepts either root URLs or URLs ending in `/v1` and normalizes them before calling Plexus.
230
+ - **pi** refreshes on startup, extension reload, and through `/plexus refresh`. It accepts either root URLs or URLs ending in `/v1` and normalizes them before calling Plexus.
231
231
  - **OpenCode** seeds the provider from cache or a placeholder model during config loading, then performs live discovery through the `provider.models` hook. If Plexus is slow or unavailable, OpenCode uses the cache and lets the refresh continue in the background.
232
232
  - Both adapters convert Plexus's per-token base and tier rates to the per-million-token units expected by their host.
233
233
 
package/dist/index.js CHANGED
@@ -50,6 +50,9 @@ function adjustBaseUrl(baseUrl, preferredApi) {
50
50
  }
51
51
  }
52
52
  function isChatModel(model) {
53
+ const inputModalities = model.architecture?.input_modalities;
54
+ if (inputModalities !== undefined && !inputModalities.includes("text"))
55
+ return false;
53
56
  const outputModalities = model.architecture?.output_modalities;
54
57
  if (outputModalities !== undefined)
55
58
  return outputModalities.includes("text");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcowger/opencode-plexus",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "OpenCode plugin: Plexus provider with dynamic model discovery",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",