@molecule/api-ai-minimax 1.1.1 → 1.1.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,UAAU,EAOX,MAAM,kBAAkB,CAAA;AASzB,OAAO,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AA+oB/C;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,UAAU,CAEjE"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,UAAU,EAOX,MAAM,kBAAkB,CAAA;AASzB,OAAO,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAmpB/C;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,UAAU,CAEjE"}
package/dist/provider.js CHANGED
@@ -311,6 +311,11 @@ class MiniMaxAIProvider {
311
311
  for (const tr of toolResults) {
312
312
  formatted.push(tr);
313
313
  }
314
+ // Non-tool parts of the SAME message (an image riding a tool result — the
315
+ // screenshot tool) must not be dropped: Chat Completions accepts a user
316
+ // message after the tool messages, so emit them instead of losing them.
317
+ if (parts.length > 0)
318
+ formatted.push({ role: m.role, content: parts });
314
319
  }
315
320
  else if (toolCalls.length > 0) {
316
321
  // Assistant message with tool calls
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-ai-minimax",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "MiniMax AI provider for molecule.dev",
5
5
  "homepage": "https://www.molecule.dev/packages/api-ai-minimax",
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  "directory": "packages/api/bonds/ai/minimax"
34
34
  },
35
35
  "devDependencies": {
36
- "@molecule/api-ai": "1.2.1",
36
+ "@molecule/api-ai": "1.3.0",
37
37
  "@molecule/api-bond": "1.0.2",
38
38
  "@types/node": "26.1.2",
39
39
  "typescript": "6.0.3",