mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
feat: text to image impl (#6437)
fix CLOUD-18 fix CLOUD-28 fix CLOUD-29
This commit is contained in:
@@ -31,10 +31,22 @@ export const prompts: Prompt[] = [
|
||||
model: 'gpt-4-vision-preview',
|
||||
messages: [],
|
||||
},
|
||||
{
|
||||
name: 'debug:action:dalle3',
|
||||
action: 'image',
|
||||
model: 'dall-e-3',
|
||||
messages: [],
|
||||
},
|
||||
{
|
||||
name: 'debug:action:fal-sd15',
|
||||
action: 'image',
|
||||
model: '110602490-lcm-sd15-i2i',
|
||||
messages: [],
|
||||
},
|
||||
{
|
||||
name: 'Summary',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -46,7 +58,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Summary the webpage',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -58,7 +70,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Explain this image',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-vision-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -70,7 +82,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Explain this code',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -82,7 +94,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Translate to',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -108,7 +120,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Write an article about this',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -119,7 +131,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Write a twitter about this',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -130,7 +142,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Write a poem about this',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -141,7 +153,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Write a blog post about this',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -152,7 +164,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Change tone to',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -165,7 +177,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Brainstorm ideas about this',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -177,7 +189,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Improve writing for it',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -189,7 +201,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Improve grammar for it',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -201,7 +213,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Fix spelling for it',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -227,7 +239,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Find action items from it',
|
||||
action: 'todo-list',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -239,7 +251,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Check code error',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -251,7 +263,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Create a presentation',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
@@ -263,7 +275,7 @@ export const prompts: Prompt[] = [
|
||||
{
|
||||
name: 'Create headings',
|
||||
action: 'text',
|
||||
model: 'gpt-3.5-turbo',
|
||||
model: 'gpt-4-turbo-preview',
|
||||
messages: [
|
||||
{
|
||||
role: 'assistant',
|
||||
|
||||
Reference in New Issue
Block a user