diff --git a/ui/src/components/model-select/index.vue b/ui/src/components/model-select/index.vue
index 5dac9cde..1c42916b 100644
--- a/ui/src/components/model-select/index.vue
+++ b/ui/src/components/model-select/index.vue
@@ -56,7 +56,7 @@
- {{ $t('views.application.buttons.addModel') }}
+ {{ $t('views.application.operation.addModel') }}
diff --git a/ui/src/locales/lang/en-US/views/application-workflow.ts b/ui/src/locales/lang/en-US/views/application-workflow.ts
index 2a9f3c10..029a97d5 100644
--- a/ui/src/locales/lang/en-US/views/application-workflow.ts
+++ b/ui/src/locales/lang/en-US/views/application-workflow.ts
@@ -15,7 +15,6 @@ export default {
restoreVersion: 'Restore Previous Version"',
restoreCurrentVersion: 'Restore to This Version',
addComponent: 'Add',
- public: 'Publish',
releaseHistory: 'Release History',
autoSave: 'Auto Save',
latestRelease: 'Latest Release',
@@ -25,7 +24,6 @@ export default {
exitSave: 'Save & Exit',
},
tip: {
- publicSuccess: 'Published successfully',
noData: 'No related results found',
nameMessage: 'Name cannot be empty!',
onlyRight: 'Connections can only be made from the right anchor',
diff --git a/ui/src/locales/lang/en-US/views/application.ts b/ui/src/locales/lang/en-US/views/application.ts
index e4faa34c..c3c1dcca 100644
--- a/ui/src/locales/lang/en-US/views/application.ts
+++ b/ui/src/locales/lang/en-US/views/application.ts
@@ -19,7 +19,9 @@ export default {
unpublished: 'Unpublished',
},
operation: {
+ addModel: 'Add Model',
toChat: 'Chat',
+ publish: 'Publish',
},
delete: {
confirmTitle: 'Are you sure you want to delete this APP: ',
@@ -27,6 +29,7 @@ export default {
'Deleting this APP will no longer provide its services. Please proceed with caution.',
},
tip: {
+ publishSuccess: 'Published successfully',
ExportError: 'Export Failed',
professionalMessage:
'The Community Edition supports up to 5 APP. If you need more APP, please upgrade to the Professional Edition.',
@@ -123,10 +126,7 @@ export default {
end: 'End',
},
},
- buttons: {
- publish: 'Save&Publish',
- addModel: 'Add Model',
- },
+ buttons: {},
dialog: {
addKnowledge: 'Add Related Knowledge',
addKnowledgePlaceholder: 'The selected knowledge must use the same embedding model',
diff --git a/ui/src/locales/lang/zh-CN/views/application-workflow.ts b/ui/src/locales/lang/zh-CN/views/application-workflow.ts
index 964941d1..b4edecc7 100644
--- a/ui/src/locales/lang/zh-CN/views/application-workflow.ts
+++ b/ui/src/locales/lang/zh-CN/views/application-workflow.ts
@@ -5,27 +5,25 @@ export default {
nodeSetting: '节点设置',
workflow: '工作流',
searchBar: {
- placeholder: '按名称搜索'
+ placeholder: '按名称搜索',
},
info: {
previewVersion: '预览版本:',
- saveTime: '保存时间:'
+ saveTime: '保存时间:',
},
setting: {
restoreVersion: '恢复版本',
restoreCurrentVersion: '恢复此版本',
addComponent: '添加组件',
- public: '发布',
releaseHistory: '发布历史',
autoSave: '自动保存',
latestRelease: '最近发布',
copyParam: '复制参数',
debug: '调试',
exit: '直接退出',
- exitSave: '保存并退出'
+ exitSave: '保存并退出',
},
tip: {
- publicSuccess: '发布成功',
noData: '没有找到相关结果',
nameMessage: '名字不能为空!',
onlyRight: '只允许从右边的锚点连出',
@@ -37,11 +35,11 @@ export default {
cannotCopy: '不能被复制',
copyError: '已复制节点',
paramErrorMessage: '参数已存在: ',
- saveMessage: '当前的更改尚未保存,是否保存后退出?'
+ saveMessage: '当前的更改尚未保存,是否保存后退出?',
},
delete: {
confirmTitle: '确定删除该节点?',
- deleteMessage: '节点不允许删除'
+ deleteMessage: '节点不允许删除',
},
control: {
zoomOut: '缩小',
@@ -49,7 +47,7 @@ export default {
fitView: '适应',
retract: '收起全部节点',
extend: '展开全部节点',
- beautify: '一键美化'
+ beautify: '一键美化',
},
variable: {
label: '变量',
@@ -58,14 +56,14 @@ export default {
ReferencingRequired: '引用变量必填',
ReferencingError: '引用变量错误',
NoReferencing: '不存在的引用变量',
- placeholder: '请选择变量'
+ placeholder: '请选择变量',
},
condition: {
title: '执行条件',
front: '前置',
AND: '所有',
OR: '任一',
- text: '连线节点执行完,执行当前节点'
+ text: '连线节点执行完,执行当前节点',
},
validate: {
startNodeRequired: '开始节点必填',
@@ -77,30 +75,30 @@ export default {
nodeUnavailable: '节点不可用',
needConnect1: '节点的',
needConnect2: '分支需要连接',
- cannotEndNode: '节点不能当做结束节点'
+ cannotEndNode: '节点不能当做结束节点',
},
nodes: {
classify: {
aiCapability: 'AI能力',
businessLogic: '业务逻辑',
- other: '其他'
+ other: '其他',
},
startNode: {
label: '开始',
question: '用户问题',
- currentTime: '当前时间'
+ currentTime: '当前时间',
},
baseNode: {
label: '基本信息',
appName: {
- label: '应用名称'
+ label: '应用名称',
},
appDescription: {
- label: '应用描述'
+ label: '应用描述',
},
fileUpload: {
label: '文件上传',
- tooltip: '开启后,问答页面会显示上传文件的按钮。'
+ tooltip: '开启后,问答页面会显示上传文件的按钮。',
},
FileUploadSetting: {
title: '文件上传设置',
@@ -111,10 +109,9 @@ export default {
documentText: '需要使用“文档内容提取”节点解析文档内容',
imageText: '需要使用“视觉模型”节点解析图片内容',
audioText: '需要使用“语音转文本”节点解析音频内容',
- otherText: '需要自行解析该类型文件'
+ otherText: '需要自行解析该类型文件',
},
-
- }
+ },
},
aiChatNode: {
label: 'AI 对话',
@@ -123,10 +120,10 @@ export default {
returnContent: {
label: '返回内容',
tooltip: `关闭后该节点的内容则不输出给用户。
- 如果你想让用户看到该节点的输出内容,请打开开关。`
+ 如果你想让用户看到该节点的输出内容,请打开开关。`,
},
defaultPrompt: '已知信息',
- think: '思考过程'
+ think: '思考过程',
},
searchKnowledgeNode: {
label: '知识库检索',
@@ -139,8 +136,8 @@ export default {
searchQuestion: {
label: '检索问题',
placeholder: '请选择检索问题',
- requiredMessage: '请选择检索问题'
- }
+ requiredMessage: '请选择检索问题',
+ },
},
questionNode: {
label: '问题优化',
@@ -148,7 +145,7 @@ export default {
result: '问题优化结果',
defaultPrompt1: `根据上下文优化和完善用户问题`,
defaultPrompt2: `请输出一个优化后的问题。`,
- systemDefault: '你是一个问题优化大师'
+ systemDefault: '你是一个问题优化大师',
},
conditionNode: {
label: '判断器',
@@ -157,11 +154,11 @@ export default {
conditions: {
label: '条件',
info: '符合以下',
- requiredMessage: '请选择条件'
+ requiredMessage: '请选择条件',
},
valueMessage: '请输入值',
addCondition: '添加条件',
- addBranch: '添加分支'
+ addBranch: '添加分支',
},
replyNode: {
label: '指定回复',
@@ -169,8 +166,8 @@ export default {
content: '内容',
replyContent: {
label: '回复内容',
- reference: '引用变量'
- }
+ reference: '引用变量',
+ },
},
rerankerNode: {
label: '多路召回',
@@ -179,15 +176,15 @@ export default {
result: '重排结果',
rerankerContent: {
label: '重排内容',
- requiredMessage: '请选择重排内容'
+ requiredMessage: '请选择重排内容',
},
higher: '高于',
ScoreTooltip: 'Score越高相关性越强。',
max_paragraph_char_number: '最大引用字符数',
reranker_model: {
label: '重排模型',
- placeholder: '请选择重排模型'
- }
+ placeholder: '请选择重排模型',
+ },
},
formNode: {
label: '表单收集',
@@ -198,15 +195,15 @@ export default {
formContent: {
label: '表单输出内容',
requiredMessage: '请表单输出内容',
- tooltip: '设置执行该节点输出的内容,{ form } 为表单的占位符。'
+ tooltip: '设置执行该节点输出的内容,{ form } 为表单的占位符。',
},
formAllContent: '表单全部内容',
- formSetting: '表单配置'
+ formSetting: '表单配置',
},
documentExtractNode: {
label: '文档内容提取',
text: '提取文档中的内容',
- content: '文档内容'
+ content: '文档内容',
},
imageUnderstandNode: {
label: '图片理解',
@@ -214,17 +211,17 @@ export default {
answer: 'AI 回答内容',
model: {
label: '视觉模型',
- requiredMessage: '请选择视觉模型'
+ requiredMessage: '请选择视觉模型',
},
image: {
label: '选择图片',
- requiredMessage: '请选择图片'
- }
+ requiredMessage: '请选择图片',
+ },
},
variableAssignNode: {
label: '变量赋值',
text: '更新全局变量的值',
- assign: '赋值'
+ assign: '赋值',
},
mcpNode: {
label: 'MCP 调用',
@@ -235,7 +232,7 @@ export default {
toolParam: '工具参数',
mcpServerTip: '请输入JSON格式的MCP服务器配置',
mcpToolTip: '请选择工具',
- configLabel: 'MCP Server Config (仅支持SSE/Streamable HTTP调用方式)'
+ configLabel: 'MCP Server Config (仅支持SSE/Streamable HTTP调用方式)',
},
imageGenerateNode: {
label: '图片生成',
@@ -243,46 +240,46 @@ export default {
answer: 'AI 回答内容',
model: {
label: '图片生成模型',
- requiredMessage: '请选择图片生成模型'
+ requiredMessage: '请选择图片生成模型',
},
prompt: {
label: '提示词(正向)',
- tooltip: '正向提示词,用来描述生成图像中期望包含的元素和视觉特点'
+ tooltip: '正向提示词,用来描述生成图像中期望包含的元素和视觉特点',
},
negative_prompt: {
label: '提示词(负向)',
tooltip: '反向提示词,用来描述不希望在画面中看到的内容,可以对画面进行限制。',
- placeholder: '请描述不想生成的图片内容,比如:颜色、血腥内容'
- }
+ placeholder: '请描述不想生成的图片内容,比如:颜色、血腥内容',
+ },
},
speechToTextNode: {
label: '语音转文本',
text: '将音频通过语音识别模型转换为文本',
stt_model: {
- label: '语音识别模型'
+ label: '语音识别模型',
},
audio: {
label: '选择语音文件',
- placeholder: '请选择语音文件'
- }
+ placeholder: '请选择语音文件',
+ },
},
textToSpeechNode: {
label: '文本转语音',
text: '将文本通过语音合成模型转换为音频',
tts_model: {
- label: '语音识别模型'
+ label: '语音识别模型',
},
content: {
- label: '选择文本内容'
- }
+ label: '选择文本内容',
+ },
},
toolNode: {
label: '自定义函数',
- text: '通过执行自定义脚本,实现数据处理'
+ text: '通过执行自定义脚本,实现数据处理',
},
applicationNode: {
- label: '应用节点'
- }
+ label: '应用节点',
+ },
},
compare: {
is_null: '为空',
@@ -300,7 +297,7 @@ export default {
len_le: '长度小于等于',
len_lt: '长度小于',
is_true: '为真',
- is_not_true: '不为真'
+ is_not_true: '不为真',
},
- FileUploadSetting: {}
+ FileUploadSetting: {},
}
diff --git a/ui/src/locales/lang/zh-CN/views/application.ts b/ui/src/locales/lang/zh-CN/views/application.ts
index b577dbf3..92d7437d 100644
--- a/ui/src/locales/lang/zh-CN/views/application.ts
+++ b/ui/src/locales/lang/zh-CN/views/application.ts
@@ -17,14 +17,18 @@ export default {
published: '已发布',
unpublished: '未发布',
},
+
operation: {
+ addModel: '添加模型',
toChat: '去对话',
+ publish: '发布',
},
delete: {
confirmTitle: '是否删除应用:',
confirmMessage: '删除后该应用将不再提供服务,请谨慎操作。',
},
tip: {
+ publishSuccess: '发布成功',
ExportError: '导出失败',
professionalMessage: '社区版最多支持 5 个应用,如需拥有更多应用,请升级为专业版。',
saveErrorMessage: '保存失败,请检查输入或稍后再试',
@@ -113,11 +117,6 @@ export default {
end: '结束',
},
},
- buttons: {
- save: '保存',
- publish: '发布',
- addModel: '添加模型',
- },
dialog: {
addKnowledge: '添加关联知识库',
diff --git a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts
index 7087feaf..2e5c3f73 100644
--- a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts
+++ b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts
@@ -15,7 +15,6 @@ export default {
restoreVersion: '恢復版本',
restoreCurrentVersion: '恢復此版本',
addComponent: '添加組件',
- public: '發布',
releaseHistory: '發布歷史',
autoSave: '自動保存',
latestRelease: '最近發布',
@@ -25,7 +24,6 @@ export default {
exitSave: '保存並退出',
},
tip: {
- publicSuccess: '發布成功',
noData: '沒有找到相關結果',
nameMessage: '名字不能為空!',
onlyRight: '只允許從右邊的錨點連出',
diff --git a/ui/src/locales/lang/zh-Hant/views/application.ts b/ui/src/locales/lang/zh-Hant/views/application.ts
index 3ef4ad8f..f5cffbbf 100644
--- a/ui/src/locales/lang/zh-Hant/views/application.ts
+++ b/ui/src/locales/lang/zh-Hant/views/application.ts
@@ -19,12 +19,15 @@ export default {
},
operation: {
toChat: '去對話',
+ publish: '發布',
+ addModel: '新增模型',
},
delete: {
confirmTitle: '是否刪除應用:',
confirmMessage: '刪除後該應用將不再提供服務,請謹慎操作。',
},
tip: {
+ publishSuccess: '發布成功',
ExportError: '匯出失敗',
professionalMessage: '社群版最多支援 5 個應用,如需擁有更多應用,請升級為專業版。',
saveErrorMessage: '儲存失敗,請檢查輸入或稍後再試',
@@ -113,10 +116,6 @@ export default {
end: '結束',
},
},
- buttons: {
- publish: '儲存並發佈',
- addModel: '新增模型',
- },
dialog: {
addKnowledge: '新增關聯知識庫',
diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue
index 26926a5b..6533edad 100644
--- a/ui/src/views/application-workflow/index.vue
+++ b/ui/src/views/application-workflow/index.vue
@@ -37,7 +37,7 @@
{{ $t('common.save') }}
- {{ $t('views.applicationWorkflow.setting.public') }}
+ {{ $t('views.application.operation.publish') }}
@@ -287,7 +287,7 @@ const publish = () => {
})
.then((ok: any) => {
detail.value.name = ok.data.name
- MsgSuccess(t('views.applicationWorkflow.tip.publicSuccess'))
+ MsgSuccess(t('views.application.tip.publishSuccess'))
})
.catch((res: any) => {
const node = res.node
diff --git a/ui/src/views/application/ApplicationSetting.vue b/ui/src/views/application/ApplicationSetting.vue
index 1af9b563..606aae84 100644
--- a/ui/src/views/application/ApplicationSetting.vue
+++ b/ui/src/views/application/ApplicationSetting.vue
@@ -11,7 +11,7 @@
:disabled="loading"
v-if="permissionPrecise.edit(id)"
>
- {{ $t('views.application.buttons.save') }}
+ {{ $t('common.save') }}
- {{ $t('views.application.buttons.publish') }}
+ {{ $t('views.application.operation.publish') }}
@@ -567,7 +567,7 @@ const publish = (formEl: FormInstance | undefined) => {
return ApplicationAPI.publish(id, {}, loading)
})
.then((res) => {
- MsgSuccess(t('common.saveSuccess'))
+ MsgSuccess(t('views.application.tip.publishSuccess'))
})
})
}
diff --git a/ui/vite.config.ts b/ui/vite.config.ts
index 718771ef..97430f09 100644
--- a/ui/vite.config.ts
+++ b/ui/vite.config.ts
@@ -36,12 +36,12 @@ export default defineConfig((conf: any) => {
const ENV = loadEnv(mode, envDir)
const proxyConf: Record = {}
proxyConf['/admin/api'] = {
- // target: 'http://47.92.102.103:8080/',
+ // target: 'http://47.92.195.88:8080/',
target: 'http://127.0.0.1:8080',
changeOrigin: true,
}
proxyConf['/chat/api'] = {
- // target: 'http://47.92.102.103:8080/',
+ // target: 'http://47.92.195.88:8080/',
target: 'http://127.0.0.1:8080',
changeOrigin: true,
}