chore: improve prompt auto generator (#6514)

This commit is contained in:
Joel
2024-07-22 11:44:12 +08:00
committed by GitHub
parent dfb6f4fec6
commit a6350daa02
20 changed files with 454 additions and 237 deletions

View File

@@ -24,7 +24,7 @@ const translation = {
resetConfig: '重置',
debugConfig: '调试',
addFeature: '添加功能',
automatic: '自动编排',
automatic: '生成',
stopResponding: '停止响应',
agree: '赞同',
disagree: '反对',
@@ -199,22 +199,59 @@ const translation = {
},
},
},
automatic: {
title: '自动编排',
description: '描述您的场景Dify 将为您编排一个应用。',
intendedAudience: '目标用户是谁?',
intendedAudiencePlaceHolder: '例如:学生',
solveProblem: '希望 AI 为他们解决什么问题?',
solveProblemPlaceHolder: '例如:评估学业水平',
generate: {
title: '提示生成器',
description: '提示生成器可以将输入的任务指令转换为高质量、结构化的提示。请尽可能详细地编写清晰、具体的指令。生成的提示的质量取决于您选择的推理模型。',
tryIt: '试一试',
instruction: '指令',
instructionPlaceHolder: '写下清晰、具体的说明。',
generate: '生成',
audiencesRequired: '目标用户必填',
problemRequired: '解决问题必填',
resTitle: '我们为您编排了以下应用程序',
resTitle: '生成的提示词',
noDataLine1: '在左侧描述您的用例,',
noDataLine2: '编排预览将在此处显示。',
apply: '应用',
noData: '在左侧描述您的用例,编排预览将在此处显示。',
loading: '为您编排应用程序中…',
overwriteTitle: '覆盖现有配置?',
overwriteMessage: '应用此编排将覆盖现有配置。',
overwriteMessage: '应用此提示将覆盖现有配置。',
template: {
pythonDebugger: {
name: 'Python 代码助手',
instruction: '一个帮你写和纠错程序的机器人',
},
translation: {
name: '翻译机器人',
instruction: '一个可以翻译多种语言的翻译器',
},
professionalAnalyst: {
name: '职业分析师',
instruction: ' 从长篇报告中提取洞察、识别风险并提炼关键信息',
},
excelFormulaExpert: {
name: 'Excel 公式专家',
instruction: '一个可以让小白用户理解、使用和创建 Excel 公式的对话机器人',
},
travelPlanning: {
name: '旅行规划助手',
instruction: '旅行规划助手是一个智能工具,旨在帮助用户轻松规划他们的旅行',
},
SQLSorcerer: {
name: 'SQL 生成',
instruction: '把自然语言转换成 SQL 查询语句',
},
GitGud: {
name: 'Git 大师',
instruction: '从用户提出的版本管理需求生成合适的 Git 命令',
},
meetingTakeaways: {
name: '总结会议纪要',
instruction: '将会议内容提炼总结,包括讨论主题、关键要点和待办事项',
},
writingsPolisher: {
name: '润色文章',
instruction: '用地道的编辑技巧改进我的文章',
},
},
},
resetConfig: {
title: '确认重置?',