revert: don't clarify the full body in the prompt, no safety filter

This commit is contained in:
2025-10-31 12:51:51 -07:00
parent 3a2cc3f992
commit 2c9eb1e360
+2 -3
View File
@@ -5,7 +5,7 @@
*/
import { Anthropic } from "@anthropic-ai/sdk";
import { GoogleGenAI, PersonGeneration, SafetyFilterLevel } from "@google/genai";
import { GoogleGenAI, PersonGeneration } from "@google/genai";
import { AttachmentBuilder, type MessageCreateOptions } from "discord.js";
/**
@@ -50,7 +50,7 @@ export class Ai {
join(", ")}`,
prompt,
);
const image = await this.generateImage(`Your task is to generate a full body anime girl mascot for this project. This means the full character should be visible. The image should have a transparent background. NEVER include text in the image. The project description is: ${prompt}`);
const image = await this.generateImage(`Your task is to generate a full body anime girl mascot for this project. The image should have a transparent background. NEVER include text in the image. The project description is: ${prompt}`);
if (image === null) {
return { content: `Project Name: ${names}\nProject Description: ${prompt}\nSorry, I was unable to generate an image for you.` };
}
@@ -90,7 +90,6 @@ export class Ai {
numberOfImages: 1,
outputMimeType: "image/png",
personGeneration: PersonGeneration.ALLOW_ADULT,
safetyFilterLevel: SafetyFilterLevel.BLOCK_NONE,
},
model: "models/imagen-4.0-generate-001",
prompt: prompt,