feat: fetch fal stream correctly (#7141)

This commit is contained in:
darkskygit
2024-06-04 09:30:11 +00:00
parent 01fc1ea835
commit db0837936a
5 changed files with 123 additions and 90 deletions

View File

@@ -0,0 +1,13 @@
import { PrismaClient } from '@prisma/client';
import { refreshPrompts } from './utils/prompts';
export class UpdatePrompts1717490700326 {
// do the migration
static async up(db: PrismaClient) {
await refreshPrompts(db);
}
// revert the migration
static async down(_db: PrismaClient) {}
}

View File

@@ -86,64 +86,26 @@ export const prompts: Prompt[] = [
{
name: 'debug:action:fal-sdturbo-clay',
action: 'AI image filter clay style',
model: 'fast-sdxl/image-to-image',
messages: [
{
role: 'user',
content: 'claymation, clay, {{content}}',
params: {
lora: [
'https://models.affine.pro/fal/Clay_AFFiNEAI_SDXL1_CLAYMATION.safetensors',
],
},
},
],
model: 'workflows/darkskygit/clay',
messages: [],
},
{
name: 'debug:action:fal-sdturbo-pixel',
action: 'AI image filter pixel style',
model: 'fast-sdxl/image-to-image',
messages: [
{
role: 'user',
content: 'pixel art, very high detail, masterpiece, {{content}}',
params: {
lora: ['https://models.affine.pro/fal/pixel-art-xl-v1.1.safetensors'],
},
},
],
model: 'workflows/darkskygit/pixel-art',
messages: [],
},
{
name: 'debug:action:fal-sdturbo-sketch',
action: 'AI image filter sketch style',
model: 'fast-sdxl/image-to-image',
messages: [
{
role: 'user',
content: 'sketch for art examination, {{content}}',
params: {
lora: [
'https://models.affine.pro/fal/sketch_for_art_examination.safetensors',
],
},
},
],
model: 'workflows/darkskygit/sketch',
messages: [],
},
{
name: 'debug:action:fal-sdturbo-fantasy',
action: 'AI image filter anime style',
model: 'fast-sdxl/image-to-image',
messages: [
{
role: 'user',
content: 'fansty world, {{content}}',
params: {
lora: [
'https://models.affine.pro/fal/fansty%20world-000020.safetensors',
],
},
},
],
model: 'workflows/darkskygit/animie',
messages: [],
},
{
name: 'debug:action:fal-face-to-sticker',