@aigne/gemini 0.10.0 → 0.11.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.11.0](https://github.com/AIGNE-io/aigne-framework/compare/gemini-v0.10.0...gemini-v0.11.0) (2025-08-27)
4
+
5
+
6
+ ### Features
7
+
8
+ * **models:** support aigne hub models ([#416](https://github.com/AIGNE-io/aigne-framework/issues/416)) ([b4f014c](https://github.com/AIGNE-io/aigne-framework/commit/b4f014cf5ed08ef930d3ddfc278d3610e64c6af3))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/openai bumped to 0.13.1
16
+ * devDependencies
17
+ * @aigne/core bumped to 1.56.0
18
+ * @aigne/test-utils bumped to 0.5.37
19
+
3
20
  ## [0.10.0](https://github.com/AIGNE-io/aigne-framework/compare/gemini-v0.9.10...gemini-v0.10.0) (2025-08-27)
4
21
 
5
22
 
@@ -82,8 +82,8 @@ class GeminiImageModel extends core_1.ImageModel {
82
82
  });
83
83
  return {
84
84
  images: response.generatedImages
85
- ?.filter((image) => image.image?.imageBytes)
86
- .map((image) => ({ base64: image.image?.imageBytes })) || [],
85
+ ?.map(({ image }) => (image?.imageBytes ? { base64: image.imageBytes } : undefined))
86
+ .filter(type_utils_js_1.isNonNullable) || [],
87
87
  usage: {
88
88
  inputTokens: 0,
89
89
  outputTokens: 0,
@@ -1,5 +1,5 @@
1
1
  import { ImageModel, imageModelInputSchema, } from "@aigne/core";
2
- import { checkArguments, pick } from "@aigne/core/utils/type-utils.js";
2
+ import { checkArguments, isNonNullable, pick } from "@aigne/core/utils/type-utils.js";
3
3
  import { GoogleGenAI } from "@google/genai";
4
4
  import { z } from "zod";
5
5
  const DEFAULT_MODEL = "imagen-4.0-generate-001";
@@ -79,8 +79,8 @@ export class GeminiImageModel extends ImageModel {
79
79
  });
80
80
  return {
81
81
  images: response.generatedImages
82
- ?.filter((image) => image.image?.imageBytes)
83
- .map((image) => ({ base64: image.image?.imageBytes })) || [],
82
+ ?.map(({ image }) => (image?.imageBytes ? { base64: image.imageBytes } : undefined))
83
+ .filter(isNonNullable) || [],
84
84
  usage: {
85
85
  inputTokens: 0,
86
86
  outputTokens: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/gemini",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "AIGNE Gemini SDK for integrating with Google's Gemini AI models",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@google/genai": "^1.15.0",
39
39
  "zod": "^3.25.67",
40
- "@aigne/openai": "^0.13.0"
40
+ "@aigne/openai": "^0.13.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/bun": "^1.2.18",
@@ -45,8 +45,8 @@
45
45
  "npm-run-all": "^4.1.5",
46
46
  "rimraf": "^6.0.1",
47
47
  "typescript": "^5.8.3",
48
- "@aigne/core": "^1.55.1",
49
- "@aigne/test-utils": "^0.5.36"
48
+ "@aigne/core": "^1.56.0",
49
+ "@aigne/test-utils": "^0.5.37"
50
50
  },
51
51
  "scripts": {
52
52
  "lint": "tsc --noEmit",