@dataclouder/nest-vertex 0.0.9 → 0.0.10
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/package.json
CHANGED
|
@@ -10,7 +10,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.ImageVertexService = void 0;
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const genai_1 = require("@google/genai");
|
|
13
|
-
const generative_ai_1 = require("@google/generative-ai");
|
|
14
13
|
let ImageVertexService = ImageVertexService_1 = class ImageVertexService {
|
|
15
14
|
genAi;
|
|
16
15
|
logger = new common_1.Logger(ImageVertexService_1.name);
|
|
@@ -39,7 +38,7 @@ let ImageVertexService = ImageVertexService_1 = class ImageVertexService {
|
|
|
39
38
|
aspectRatio: generateImageDto.aspectRatio,
|
|
40
39
|
negativePrompt: generateImageDto.negativePrompt,
|
|
41
40
|
includeSafetyAttributes: false,
|
|
42
|
-
safetySettings: [{ threshold:
|
|
41
|
+
safetySettings: [{ threshold: genai_1.HarmBlockThreshold.BLOCK_NONE }],
|
|
43
42
|
},
|
|
44
43
|
};
|
|
45
44
|
Object.keys(imageRequest.config).forEach((key) => imageRequest.config[key] === undefined && delete imageRequest.config[key]);
|