Skip to content

Commit 3be4eb8

Browse files
committed
feat: add friendly text template
1 parent 652f5b5 commit 3be4eb8

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

Diff for: apps/chrome-extension/src/pages/Content/prompts.ts

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
import {
2222
ProofReadAndCorrectPrompt,
2323
ProofReadPrompt,
24+
RewriteFriendlyTextMessagePrompt,
2425
RewriteToCoolPrompt,
2526
RewriteToFormalPrompt,
2627
} from '@rpidanny/llm-prompt-templates/core/writing';
@@ -60,6 +61,7 @@ const codePrompts: IPrompt[] = [
6061
];
6162

6263
const writingPrompts: IPrompt[] = [
64+
RewriteFriendlyTextMessagePrompt,
6365
RewriteToFormalPrompt,
6466
RewriteToCoolPrompt,
6567
ProofReadPrompt,

Diff for: libs/llm-prompt-templates/src/core/tags.enum.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ export enum Tag {
1717
ProofRead = 'proofread',
1818
TreeOfThought = 'tree-of-thought',
1919
LeetCode = 'leetcode',
20+
TextMessage = 'text-message',
2021
}

Diff for: libs/llm-prompt-templates/src/core/writing.ts

+13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@ import { PromptCategory } from './categories.enum';
22
import { IPrompt } from './interfaces';
33
import { Tag } from './tags.enum';
44

5+
export const RewriteFriendlyTextMessagePrompt: IPrompt = {
6+
name: 'Rewrite Friendly Text Message',
7+
description: `This prompt rewrites your text to make it friendly, funny and elegant. It's useful for making your text messages more fun and interesting.`,
8+
tags: [Tag.Transform, Tag.TextMessage],
9+
category: PromptCategory.Writing,
10+
content: `Rewrite the following text message to make it friendly, funny and elegant:
11+
12+
\`\`\`
13+
{text}
14+
\`\`\`
15+
`,
16+
};
17+
518
export const RewriteToFormalPrompt: IPrompt = {
619
name: 'Rewrite to Formal',
720
description: `This prompt rewrites your text into formal writing. It's useful for writing emails, essays, reports, and other formal documents.`,

0 commit comments

Comments
 (0)