feat: add code generator (#9051)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
Kota-Yamaguchi
2024-10-22 22:57:54 +09:00
committed by GitHub
parent 0e965b6529
commit a7ee51e5d8
12 changed files with 470 additions and 2 deletions

View File

@@ -219,6 +219,20 @@ const translation = {
manage: 'Manage',
},
},
codegen: {
title: 'Code Generator',
description: 'The Code Generator uses configured models to generate high-quality code based on your instructions. Please provide clear and detailed instructions.',
instruction: 'Instructions',
instructionPlaceholder: 'Enter detailed description of the code you want to generate.',
generate: 'Generate',
generatedCodeTitle: 'Generated Code',
loading: 'Generating code...',
apply: 'Apply',
applyChanges: 'Apply Changes',
resTitle: 'Generated Code',
overwriteConfirmTitle: 'Overwrite existing code?',
overwriteConfirmMessage: 'This action will overwrite the existing code. Do you want to continue?',
},
generate: {
title: 'Prompt Generator',
description: 'The Prompt Generator uses the configured model to optimize prompts for higher quality and better structure. Please write clear and detailed instructions.',