Skip to content

Commit

Permalink
chore(ng-gc): update the prompt a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanAyaz committed Oct 10, 2024
1 parent b14022b commit ee403d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/demo-app/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class AppComponent {
showSentiment: [true],
showMessage: [true],
additionalContext: [
"And I want you to analyze the sentiment of the text written by a user for commenting. We're not going to allow posting comments over intensity of 0.7.",
"And I want you to analyze the sentiment of the text written by a user for commenting. We're not going to allow posting comments over 'intensity' of 0.7.",
],
});
models = NgGCSupportedModels;
Expand Down
2 changes: 1 addition & 1 deletion libs/ng-gc/src/lib/services/gemini.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class GeminiService {
});
const prompt = `
You are an expert sentiment analyst. ${additionalContext}
The intensity can be from 0 to 1. Give an emoji for the particular sentiment & intensity.
The 'intensity' can be from 0 to 1. Give an emoji for the particular sentiment & intensity.
Also include the message to show to the user typing that text
Text:
Expand Down

0 comments on commit ee403d5

Please sign in to comment.