You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/prompts.ts
+38-25Lines changed: 38 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -2,35 +2,48 @@ import { CUSTOM_CONTEXT } from '$env/static/private'
2
2
importtype{Message,ToneType}from'./types'
3
3
import{formatMessagesAsText}from'./utils'
4
4
5
-
constcoreContext=`Analyze messages attributed to "me:" to mimic my vocabulary and tone when suggesting replies.
6
-
Additional context about recent conversation history is provided below. Use this to understand the current situation and tone, but focus your reply on the most recent messages.
7
-
Do not summarize the history - it is only for context.
8
-
I will also provide a desired tone and may include extra context. Always incorporate that tone and context when crafting replies
9
-
`
5
+
constcoreContext=[
6
+
'Analyze messages attributed to "me:" to mimic my vocabulary and tone when suggesting replies.',
7
+
'Additional context about recent conversation history is provided below. Use this to understand the current situation and tone, but focus your reply on the most recent messages.',
8
+
'Do not summarize the history - it is only for context.',
9
+
'I will also provide a desired tone and may include extra context. Always incorporate that tone and context when crafting replies.',
10
+
].join('\n')
10
11
11
-
constinstructions=`Given the conversation above, provide a brief summary including the emotional tone, main topics, and any changes in mood.
12
-
Suggest 3 replies that I might send. Provide one short reply, one medium-length reply, and one long reply.
13
-
Always use this tone when drafting replies:`
12
+
constinstructions=[
13
+
'Given the conversation above, provide a brief summary including the emotional tone, main topics, and any changes in mood.',
14
+
'Suggest 3 replies that I might send. Provide one short reply, one medium-length reply, and one long reply.',
15
+
'Always use this tone when drafting replies:',
16
+
].join('\n')
14
17
15
-
constresponseFormat=`Please respond using this format:
0 commit comments