Skip to content

Commit

Permalink
feat: add friendly text template
Browse files Browse the repository at this point in the history
  • Loading branch information
rpidanny committed Sep 6, 2024
1 parent 652f5b5 commit 3be4eb8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/chrome-extension/src/pages/Content/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
import {
ProofReadAndCorrectPrompt,
ProofReadPrompt,
RewriteFriendlyTextMessagePrompt,
RewriteToCoolPrompt,
RewriteToFormalPrompt,
} from '@rpidanny/llm-prompt-templates/core/writing';
Expand Down Expand Up @@ -60,6 +61,7 @@ const codePrompts: IPrompt[] = [
];

const writingPrompts: IPrompt[] = [
RewriteFriendlyTextMessagePrompt,
RewriteToFormalPrompt,
RewriteToCoolPrompt,
ProofReadPrompt,
Expand Down
1 change: 1 addition & 0 deletions libs/llm-prompt-templates/src/core/tags.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ export enum Tag {
ProofRead = 'proofread',
TreeOfThought = 'tree-of-thought',
LeetCode = 'leetcode',
TextMessage = 'text-message',
}
13 changes: 13 additions & 0 deletions libs/llm-prompt-templates/src/core/writing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ import { PromptCategory } from './categories.enum';
import { IPrompt } from './interfaces';
import { Tag } from './tags.enum';

export const RewriteFriendlyTextMessagePrompt: IPrompt = {
name: 'Rewrite Friendly Text Message',
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.`,
tags: [Tag.Transform, Tag.TextMessage],
category: PromptCategory.Writing,
content: `Rewrite the following text message to make it friendly, funny and elegant:
\`\`\`
{text}
\`\`\`
`,
};

export const RewriteToFormalPrompt: IPrompt = {
name: 'Rewrite to Formal',
description: `This prompt rewrites your text into formal writing. It's useful for writing emails, essays, reports, and other formal documents.`,
Expand Down

0 comments on commit 3be4eb8

Please sign in to comment.