feat: text generation application support run batch (#529)

This commit is contained in:
Joel
2023-07-07 10:35:05 +08:00
committed by GitHub
parent cde1797cc0
commit 11baff6740
24 changed files with 1017 additions and 180 deletions

View File

@@ -86,6 +86,8 @@ const translation = {
queryRequired: 'Request text is required.',
waitForResponse:
'Please wait for the response to the previous message to complete.',
waitForBatchResponse:
'Please wait for the response to the batch task to complete.',
},
chatSubTitle: 'Pre Prompt',
completionSubTitle: 'Prefix Prompt',

View File

@@ -84,6 +84,7 @@ const translation = {
valueOfVarRequired: '变量值必填',
queryRequired: '主要文本必填',
waitForResponse: '请等待上条信息响应完成',
waitForBatchResponse: '请等待批量任务完成',
},
chatSubTitle: '对话前提示词',
completionSubTitle: '前缀提示词',

View File

@@ -30,7 +30,8 @@ const translation = {
},
generation: {
tabs: {
create: 'Create',
create: 'Run Once',
batch: 'Run Batch',
saved: 'Saved',
},
savedNoData: {
@@ -41,10 +42,22 @@ const translation = {
title: 'AI Completion',
queryTitle: 'Query content',
queryPlaceholder: 'Write your query content...',
run: 'RUN',
run: 'Execute',
copy: 'Copy',
resultTitle: 'AI Completion',
noData: 'AI will give you what you want here.',
csvUploadTitle: 'Drag and drop your CSV file here, or ',
browse: 'browse',
csvStructureTitle: 'The CSV file must conform to the following structure:',
downloadTemplate: 'Download the template here',
field: 'Field',
errorMsg: {
empty: 'Please input content in the uploaded file.',
fileStructNotMatch: 'The uploaded CSV file not match the struct.',
emptyLine: 'Row {{rowIndex}} is empty',
invalidLine: 'Row {{rowIndex}}: variables value can not be empty',
atLeastOne: 'Please input at least one row in the uploaded file.',
},
},
}

View File

@@ -26,7 +26,8 @@ const translation = {
},
generation: {
tabs: {
create: '创建',
create: '运行一次',
batch: '批量运行',
saved: '已保存',
},
savedNoData: {
@@ -41,6 +42,18 @@ const translation = {
copy: '拷贝',
resultTitle: 'AI 书写',
noData: 'AI 会在这里给你惊喜。',
csvUploadTitle: '将您的 CSV 文件拖放到此处,或',
browse: '浏览',
csvStructureTitle: 'CSV 文件必须符合以下结构:',
downloadTemplate: '下载模板',
field: '',
errorMsg: {
empty: '上传文件的内容不能为空',
fileStructNotMatch: '上传文件的内容与结构不匹配',
emptyLine: '第 {{rowIndex}} 行的内容为空',
invalidLine: '第 {{rowIndex}} 行: 变量值必填',
atLeastOne: '上传文件的内容不能少于一条',
},
},
}