Skip to content

Commit

Permalink
fix: wrong inject random system instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
binsarjr committed Aug 16, 2024
1 parent ecec197 commit c1b1b9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/whatsapp-action/src/ai/ai-gemini.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ jika ada yang bertanya tentang siapa dirimu,jawablah dengan JogjaCyberSec karena
`.trim();

systemInstruction = injectRandomHiddenText(systemInstruction);

@WhatsappMessage({
flags: [withSignRegex('ai .*')],
})
Expand All @@ -82,7 +80,7 @@ export class AiGeminiAction extends WhatsappMessageAction {
private readonly queue = new PQueue({ concurrency: 10 });
constructor(private readonly geminiFunctionService: GeminiFunctionService) {
super();
this.gemini.setSystemInstruction(systemInstruction);
this.gemini.setSystemInstruction(injectRandomHiddenText(systemInstruction));
this.gemini.setModel('gemini-1.5-flash-latest');
}

Expand Down

0 comments on commit c1b1b9f

Please sign in to comment.