feat: update i2i model (#7041)

This commit is contained in:
darkskygit
2024-05-23 14:27:12 +00:00
parent 535254fdf6
commit 0c42849bc3
5 changed files with 99 additions and 8 deletions
@@ -0,0 +1,13 @@
import { PrismaClient } from '@prisma/client';
import { refreshPrompts } from './utils/prompts';
export class UpdatePrompts1716451792364 {
// do the migration
static async up(db: PrismaClient) {
await refreshPrompts(db);
}
// revert the migration
static async down(_db: PrismaClient) {}
}
@@ -86,7 +86,7 @@ export const prompts: Prompt[] = [
{
name: 'debug:action:fal-sdturbo-clay',
action: 'image',
model: 'fast-turbo-diffusion',
model: 'fast-sdxl/image-to-image',
messages: [
{
role: 'user',
@@ -102,7 +102,7 @@ export const prompts: Prompt[] = [
{
name: 'debug:action:fal-sdturbo-pixel',
action: 'image',
model: 'fast-turbo-diffusion',
model: 'fast-sdxl/image-to-image',
messages: [
{
role: 'user',
@@ -116,7 +116,7 @@ export const prompts: Prompt[] = [
{
name: 'debug:action:fal-sdturbo-sketch',
action: 'image',
model: 'fast-turbo-diffusion',
model: 'fast-sdxl/image-to-image',
messages: [
{
role: 'user',
@@ -132,7 +132,7 @@ export const prompts: Prompt[] = [
{
name: 'debug:action:fal-sdturbo-fantasy',
action: 'image',
model: 'fast-turbo-diffusion',
model: 'fast-sdxl/image-to-image',
messages: [
{
role: 'user',
@@ -145,6 +145,24 @@ export const prompts: Prompt[] = [
},
],
},
{
name: 'debug:action:fal-face-to-sticker',
action: 'image',
model: 'face-to-sticker',
messages: [],
},
{
name: 'debug:action:fal-summary-caption',
action: 'image',
model: 'llava-next',
messages: [
{
role: 'user',
content:
'Please understand this image and generate a short caption. {{content}}',
},
],
},
{
name: 'Summary',
action: 'Summary',