fix(core): use backend prompts (#6542)

This commit is contained in:
pengx17
2024-04-12 11:15:38 +00:00
committed by Peng Xiao
parent 2336638996
commit 9b620ecbc9
9 changed files with 482 additions and 284 deletions

View File

@@ -73,6 +73,18 @@ export const prompts: Prompt[] = [
},
],
},
{
name: 'Explain this',
action: 'Explain this',
model: 'gpt-4-turbo-preview',
messages: [
{
role: 'assistant',
content:
'Explain the following content in a clear and concise manner, ensuring that the information is easy to understand and provides a comprehensive overview of the topic:\n\n{{content}}',
},
],
},
{
name: 'Explain this image',
action: 'Explain this image',
@@ -167,6 +179,18 @@ export const prompts: Prompt[] = [
},
],
},
{
name: 'Write outline',
action: 'Write outline',
model: 'gpt-4-turbo-preview',
messages: [
{
role: 'assistant',
content:
'Write an outline based on the following content, organizing the main points, subtopics, and structure:\n\n{{content}}',
},
],
},
{
name: 'Change tone to',
action: 'Change tone',
@@ -192,6 +216,18 @@ export const prompts: Prompt[] = [
},
],
},
{
name: 'Brainstorm mindmap',
action: 'Brainstorm mindmap',
model: 'gpt-4-turbo-preview',
messages: [
{
role: 'assistant',
content:
'Use the nested unordered list syntax without other extra text style in Markdown to create a structure similar to a mind map without any unnecessary plain text description. Analyze the following questions or topics: \n\n{{content}}',
},
],
},
{
name: 'Improve writing for it',
action: 'Improve writing for it',
@@ -329,4 +365,26 @@ export const prompts: Prompt[] = [
},
],
},
{
name: 'Make it longer',
action: 'Make it longer',
model: 'gpt-4-turbo-preview',
messages: [
{
role: 'assistant',
content: 'Make the following content longer:\n\n{{content}}',
},
],
},
{
name: 'Make it shorter',
action: 'Make it shorter',
model: 'gpt-4-turbo-preview',
messages: [
{
role: 'assistant',
content: 'Make the following content shorter:\n\n{{content}}',
},
],
},
];