chore: update prompts (#7091)

This commit is contained in:
darkskygit
2024-05-28 08:07:12 +00:00
parent 638fc62601
commit 0519d74e08
2 changed files with 14 additions and 1 deletions

View File

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

View File

@@ -159,7 +159,7 @@ export const prompts: Prompt[] = [
{
role: 'user',
content:
'Please understand this image and generate a short caption. {{content}}',
'Please understand this image and generate a short caption. Limit it to 20 words. {{content}}',
},
],
},