opencode-pollinations-plugin 5.8.4-beta.11 → 5.8.4-beta.13

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.
@@ -263,8 +263,8 @@ function mapModel(raw, prefix, namePrefix, nameSuffix = '') {
263
263
  if (rawId.includes('nomnom') || rawId.includes('scrape')) {
264
264
  modelObj.limit = { output: 2048, context: 32768 };
265
265
  }
266
- if (rawId.includes('chicky')) {
267
- modelObj.limit = { output: 8192, context: 8192 };
266
+ if (rawId.includes('chicky') || rawId.includes('mistral')) {
267
+ modelObj.limit = { output: 4096, context: 8192 };
268
268
  }
269
269
  /*
270
270
  if (rawId.includes('fast') || rawId.includes('flash')) {
@@ -217,13 +217,14 @@ export async function handleChatCompletion(req, res, bodyRaw) {
217
217
  const { getQuotaStatus, formatQuotaForToast } = await import('./quota.js');
218
218
  const quota = await getQuotaStatus(false);
219
219
  // A. Resolve Base Target
220
- if (actualModel.startsWith('enter/')) {
220
+ // A. Resolve Base Target
221
+ if (actualModel.startsWith('enter/') || actualModel.startsWith('enter-')) {
221
222
  isEnterprise = true;
222
- actualModel = actualModel.replace('enter/', '');
223
+ actualModel = actualModel.replace(/^enter[-/]/, '');
223
224
  }
224
- else if (actualModel.startsWith('free/')) {
225
+ else if (actualModel.startsWith('free/') || actualModel.startsWith('free-')) {
225
226
  isEnterprise = false;
226
- actualModel = actualModel.replace('free/', '');
227
+ actualModel = actualModel.replace(/^free[-/]/, '');
227
228
  }
228
229
  // A.1 PAID MODEL ENFORCEMENT (V5.5 Strategy)
229
230
  // Check dynamic list saved by generate-config.ts
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.4-beta.11",
4
+ "version": "5.8.4-beta.13",
5
5
  "description": "Native Pollinations.ai Provider Plugin for OpenCode",
6
6
  "publisher": "pollinations",
7
7
  "repository": {