@mcowger/pi-plexus 1.4.2 → 1.4.5

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/dist/extension.js CHANGED
@@ -169,11 +169,18 @@ function convertToDescriptor(raw, baseUrl) {
169
169
  function isChatModel(model) {
170
170
  if (!model.id)
171
171
  return false;
172
+ const inputModalities = model.architecture?.input_modalities;
173
+ if (inputModalities !== undefined && inputModalities.length > 0 && !inputModalities.includes("text")) {
174
+ return false;
175
+ }
172
176
  const outputModalities = model.architecture?.output_modalities;
173
177
  if (outputModalities !== undefined && !outputModalities.includes("text"))
174
178
  return false;
175
179
  const modality = model.architecture?.modality;
176
180
  if (modality?.includes("->")) {
181
+ const input = modality.split("->")[0] ?? "";
182
+ if (!input.toLowerCase().includes("text"))
183
+ return false;
177
184
  const output = modality.split("->").at(-1) ?? "";
178
185
  if (!output.toLowerCase().includes("text"))
179
186
  return false;
@@ -959,7 +966,7 @@ async function handleSetDefaultModel(pi, ctx, requestedModelId) {
959
966
  ctx.ui.notify(active ? `Plexus model selected: ${model.id}.` : `Plexus model ${model.id} was saved but could not be selected in this session.`, active ? "info" : "warning");
960
967
  }
961
968
  export {
962
- enforceMinimumOutputTokens,
969
+ cachedDescriptorsToPiModels,
963
970
  plexusExtension as default,
964
- cachedDescriptorsToPiModels
971
+ enforceMinimumOutputTokens
965
972
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcowger/pi-plexus",
3
- "version": "1.4.2",
3
+ "version": "1.4.5",
4
4
  "description": "Plexus AI proxy plugin for the pi coding agent",
5
5
  "type": "module",
6
6
  "files": [