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
letsystemPrompt='Strictly direct concise straight answer, no foreword or quote. ';
2161
2161
letuserPrompt='';
2162
2162
2163
2163
if(promptType==='improve'){
2164
-
systemPrompt='You are a helpful assistant that improves text. You will correct grammar, spelling, and make the text more fluent and clear.';
2164
+
systemPrompt+='You are a helpful assistant that improves text. You will correct grammar, spelling, and make the text more fluent and clear.';
2165
2165
userPrompt=`Improve the following text:\n\n---\n${content}`;
2166
2166
}elseif(promptType==='summarize'){
2167
-
systemPrompt='You are a helpful assistant that summarizes text.';
2167
+
systemPrompt+='You are a helpful assistant that summarizes text.';
2168
2168
userPrompt=`Summarize the following text:\n\n---\n${content}`;
2169
2169
}elseif(promptType==='extractTags'){
2170
-
systemPrompt='You are a helpful assistant that extracts tags from text. Return a comma-separated list of tags. Consider the existing tags and the content, and return a new list of tags that is relevant to the content.';
2171
-
userPrompt=`Extract tags (maximum 7 tags, each tag is mostly single concise meaningful word) from the following text, considering the existing tags. **Only response in plain string comma-separated text**.\n\nExisting tags: ${this.noteEditorTags}\n\nContent:\n---\n${content}`;
2170
+
systemPrompt+='You are a helpful assistant that extracts tags from text. Return a comma-separated list of tags. Consider the existing tags and the content, and return a new list of tags that is relevant to the content.';
2171
+
userPrompt=`Extract tags (maximum 7 tags, each tag is mostly single concise meaningful word) from the following text, considering the existing tags. **Only response in plain string lowercase comma-separated text**.\n\nExisting tags: [${this.noteEditorTags}]\n\nContent:\n---\n${content}`;
2172
2172
}else{
2173
2173
this.showToast({variant: 'error',title: 'Invalid AI Action',description: 'The requested AI action is not supported.'});
0 commit comments