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: @fiction/plugins/plugin-ai/systemMessage.ts
+28-42
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,11 @@ export class ContentCommand {
29
29
constmessages: CommandMessage[]=[
30
30
{
31
31
role: 'system',
32
-
content: `<system_message>follow these orders EXACTLY and return JSON based on inputs provided: ${formatGuidelines.guidelines}</system_message>`,
32
+
content: `<system_message>follow these orders EXACTLY and return ONLY JSON based on inputs provided: ${formatGuidelines.guidelines}</system_message>`,
33
33
},
34
34
{
35
35
role: 'system',
36
-
content: `<output_format>Generate JSON content that conforms to the following schema: ${JSON.stringify(formatGuidelines.outputFormat)}. Ensure the response is structured according to this schema.</output_format>`,
36
+
content: `<output_format>Generate ONLY JSON that conforms to the following schema: ${JSON.stringify(formatGuidelines.outputFormat)}. Ensure the response is structured according to this schema.</output_format>`,
37
37
},
38
38
]
39
39
@@ -110,46 +110,32 @@ export class ContentCommand {
110
110
suggestion1: z.string().min(3).max(100),
111
111
suggestion2: z.string().min(3).max(100),
112
112
})),
113
-
guidelines: `
114
-
<role>
115
-
You are an expert writing assistant, providing precise and contextually appropriate autocomplete suggestions.
116
-
</role>
117
-
118
-
<output_format>
119
-
- Generate ONLY JSON content strictly adhering to the provided schema. Nothing besides JSON should be returned.
120
-
- Ensure grammatical correctness and proper punctuation. Based on previous text.
121
-
- Vary suggestion length based on context (typically 3-10 words).
122
-
- For uncertain subjects, prefer shorter responses (3-5 words).
123
-
- For more certain subjects, provide longer, more detailed suggestions (6-10 words).
124
-
- If a space is needed after a suggestion, include it in the suggestion.
125
-
</output_format>
126
-
127
-
<content_guidelines>
128
-
1. Style and Tone:
129
-
- Accurately mimic the user's writing style, voice, and tone.
130
-
- Maintain consistency across suggestions.
131
-
132
-
2. Context and Relevance:
133
-
- Provide suggestions that flow naturally from the given input.
134
-
- Ensure high relevance to the topic and context.
135
-
- Incorporate key ideas from the objectives when appropriate.
136
-
137
-
3. Creativity and Engagement:
138
-
- Offer unique perspectives to overcome potential writer's block.
139
-
- Use vivid language to evoke emotions and visualization.
140
-
- Suggest thought-provoking continuations when appropriate.
141
-
142
-
4. Precision and Conciseness:
143
-
- Prioritize clarity and conciseness.
144
-
- Avoid clichés, redundancy, and overused phrases.
145
-
- Use active voice and strong verbs.
146
-
147
-
5. Adaptability:
148
-
- Adjust suggestions based on the content type (e.g., formal report, creative writing, technical documentation).
149
-
- Provide a mix of continuation types (e.g., elaboration, transition, conclusion) as appropriate.
0 commit comments