@aigne/gemini 0.14.16-beta.3 → 0.14.16-beta.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.14.16-beta.4](https://github.com/AIGNE-io/aigne-framework/compare/gemini-v0.14.16-beta.3...gemini-v0.14.16-beta.4) (2025-12-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **models:** parallel tool calls for gemini model ([#844](https://github.com/AIGNE-io/aigne-framework/issues/844)) ([adfae33](https://github.com/AIGNE-io/aigne-framework/commit/adfae337709295b594a8f5da61213535d2ef61aa))
9
+
3
10
  ## [0.14.16-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/gemini-v0.14.16-beta.2...gemini-v0.14.16-beta.3) (2025-12-19)
4
11
 
5
12
 
@@ -217,7 +217,6 @@ class GeminiChatModel extends core_1.ChatModel {
217
217
  };
218
218
  }
219
219
  toolCalls.push(toolCall);
220
- yield { delta: { json: { toolCalls } } };
221
220
  }
222
221
  }
223
222
  }
@@ -236,6 +235,9 @@ class GeminiChatModel extends core_1.ChatModel {
236
235
  }
237
236
  }
238
237
  }
238
+ if (toolCalls.length) {
239
+ yield { delta: { json: { toolCalls } } };
240
+ }
239
241
  if (input.responseFormat?.type === "json_schema") {
240
242
  if (json) {
241
243
  yield { delta: { json: { json } } };
@@ -214,7 +214,6 @@ export class GeminiChatModel extends ChatModel {
214
214
  };
215
215
  }
216
216
  toolCalls.push(toolCall);
217
- yield { delta: { json: { toolCalls } } };
218
217
  }
219
218
  }
220
219
  }
@@ -233,6 +232,9 @@ export class GeminiChatModel extends ChatModel {
233
232
  }
234
233
  }
235
234
  }
235
+ if (toolCalls.length) {
236
+ yield { delta: { json: { toolCalls } } };
237
+ }
236
238
  if (input.responseFormat?.type === "json_schema") {
237
239
  if (json) {
238
240
  yield { delta: { json: { json } } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/gemini",
3
- "version": "0.14.16-beta.3",
3
+ "version": "0.14.16-beta.4",
4
4
  "description": "AIGNE Gemini SDK for integrating with Google's Gemini AI models",
5
5
  "publishConfig": {
6
6
  "access": "public"