opencode-pollinations-plugin 5.8.0 → 5.9.0

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.
@@ -8,6 +8,10 @@ interface OpenCodeModel {
8
8
  context?: number;
9
9
  output?: number;
10
10
  };
11
+ modalities?: {
12
+ input?: string[];
13
+ output?: string[];
14
+ };
11
15
  }
12
16
  export declare function generatePollinationsConfig(forceApiKey?: string, forceStrict?: boolean): Promise<OpenCodeModel[]>;
13
17
  export {};
@@ -185,7 +185,12 @@ function mapModel(raw, prefix, namePrefix) {
185
185
  id: fullId,
186
186
  name: finalName,
187
187
  object: 'model',
188
- variants: {}
188
+ variants: {},
189
+ // Declare modalities for OpenCode vision support
190
+ modalities: {
191
+ input: raw.input_modalities || ['text'],
192
+ output: raw.output_modalities || ['text']
193
+ }
189
194
  };
190
195
  // --- ENRICHISSEMENT ---
191
196
  if (raw.reasoning === true || rawId.includes('thinking') || rawId.includes('reasoning')) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opencode-pollinations-plugin",
3
3
  "displayName": "Pollinations AI (V5.6)",
4
- "version": "5.8.0",
4
+ "version": "5.9.0",
5
5
  "description": "Native Pollinations.ai Provider Plugin for OpenCode",
6
6
  "publisher": "pollinations",
7
7
  "repository": {