@mcowger/opencode-plexus 1.4.3 → 1.4.6

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 +7 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -107,11 +107,18 @@ function adjustBaseUrl(baseUrl, preferredApi, anthropicBaseStyle = "root") {
107
107
  function isChatModel(model) {
108
108
  if (!model.id)
109
109
  return false;
110
+ const inputModalities = model.architecture?.input_modalities;
111
+ if (inputModalities !== undefined && inputModalities.length > 0 && !inputModalities.includes("text")) {
112
+ return false;
113
+ }
110
114
  const outputModalities = model.architecture?.output_modalities;
111
115
  if (outputModalities !== undefined && !outputModalities.includes("text"))
112
116
  return false;
113
117
  const modality = model.architecture?.modality;
114
118
  if (modality?.includes("->")) {
119
+ const input = modality.split("->")[0] ?? "";
120
+ if (!input.toLowerCase().includes("text"))
121
+ return false;
115
122
  const output = modality.split("->").at(-1) ?? "";
116
123
  if (!output.toLowerCase().includes("text"))
117
124
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcowger/opencode-plexus",
3
- "version": "1.4.3",
3
+ "version": "1.4.6",
4
4
  "description": "OpenCode plugin: Plexus provider with dynamic model discovery",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",