mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix(core): use backend prompts (#6542)
This commit is contained in:
@@ -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}}',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user