chore: update prompts (#7091)
This commit is contained in:
@@ -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) {}
|
||||||
|
}
|
||||||
@@ -159,7 +159,7 @@ export const prompts: Prompt[] = [
|
|||||||
{
|
{
|
||||||
role: 'user',
|
role: 'user',
|
||||||
content:
|
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}}',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user