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
commit a7ee51e5d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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.',

View file

@ -199,6 +199,20 @@ const translation = {
},
},
},
codegen: {
title: 'コードジェネレーター',
description: 'コードジェネレーターは、設定されたモデルを使用して指示に基づいて高品質なコードを生成します。明確で詳細な指示を提供してください。',
instruction: '指示',
instructionPlaceholder: '生成したいコードの詳細な説明を入力してください。',
generate: '生成',
generatedCodeTitle: '生成されたコード',
loading: 'コードを生成中...',
apply: '適用',
applyChanges: '変更を適用',
resTitle: '生成されたコード',
overwriteConfirmTitle: '既存のコードを上書きしますか?',
overwriteConfirmMessage: 'この操作は既存のコードを上書きします。続行しますか?',
},
generate: {
title: 'プロンプト生成器',
description: 'プロンプト生成器は、設定済みのモデルを使って、高品質で構造的に優れたプロンプトを作成するための最適化を行います。具体的で詳細な指示をお書きください。',

View file

@ -219,6 +219,20 @@ const translation = {
manage: '管理',
},
},
codegen: {
title: '代码生成器',
description: '代码生成器使用配置的模型根据您的指令生成高质量的代码。请提供清晰详细的说明。',
instruction: '指令',
instructionPlaceholder: '请输入您想要生成的代码的详细描述。',
generate: '生成',
generatedCodeTitle: '生成的代码',
loading: '正在生成代码...',
apply: '应用',
applyChanges: '应用更改',
resTitle: '生成的代码',
overwriteConfirmTitle: '是否覆盖现有代码?',
overwriteConfirmMessage: '此操作将覆盖现有代码。您确定要继续吗?',
},
generate: {
title: '提示词生成器',
description: '提示词生成器使用配置的模型来优化提示词,以获得更高的质量和更好的结构。请写出清晰详细的说明。',