mirror of
https://github.com/vibegif/vibegif.lol.git
synced 2026-04-07 02:12:12 +00:00
Refactor: Centralize prompt builders
This commit is contained in:
15
src/core/messages.js
Normal file
15
src/core/messages.js
Normal file
@@ -0,0 +1,15 @@
|
||||
export const MASTER_PROMPT =
|
||||
'minimal black and white line doodle, single stroke, white background, kawaii style';
|
||||
|
||||
export function buildFirstMessage(userPrompt) {
|
||||
return { role: 'user', content: `${MASTER_PROMPT}, ${userPrompt}` };
|
||||
}
|
||||
|
||||
export function buildNextMessage(frameIndex, frameCount) {
|
||||
return {
|
||||
role: 'user',
|
||||
content:
|
||||
`imagine we are trying to create a ${frameCount} frame gif. ` +
|
||||
`generate the next meaningful frame (frame ${frameIndex} of ${frameCount})`
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user