@mcowger/opencode-plexus 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +1 -1
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.3",
4
4
  "description": "OpenCode plugin: Plexus provider with dynamic model discovery",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",