refactor: improve fine-tuned prompt and set as default

- Refactored the new fine-tuned system prompt to heavily reduce token usage by removing redundent snippets and duplicate instructions while keeping the same strict rules in place.
- Default prompt now uses this system prompt to reduce token usage by default
This commit is contained in:
KevIsDev
2025-06-05 00:38:15 +01:00
parent 5e590aa16a
commit 71f03784ae
2 changed files with 205 additions and 618 deletions

View File

@@ -29,17 +29,17 @@ export class PromptLibrary {
> = {
default: {
label: 'Default Prompt',
description: 'This is the battle tested default system Prompt',
get: (options) => getSystemPrompt(options.cwd, options.supabase, options.designScheme),
},
enhanced: {
label: 'Fine Tuned Prompt',
description: 'An fine tuned prompt for better results',
description: 'An fine tuned prompt for better results and less token usage',
get: (options) => getFineTunedPrompt(options.cwd, options.supabase, options.designScheme),
},
original: {
label: 'Old Default Prompt',
description: 'The OG battle tested default system Prompt',
get: (options) => getSystemPrompt(options.cwd, options.supabase, options.designScheme),
},
optimized: {
label: 'Optimized Prompt (experimental)',
description: 'an Experimental version of the prompt for lower token usage',
description: 'An Experimental version of the prompt for lower token usage',
get: (options) => optimized(options),
},
};