From cbf1e42c737f6d601373600726aa603d40c705b3 Mon Sep 17 00:00:00 2001 From: jialin Date: Mon, 10 Feb 2025 11:57:50 +0800 Subject: [PATCH] chore: local path field tooltip --- src/locales/en-US/models.ts | 6 +++--- src/locales/zh-CN/models.ts | 6 +++--- src/pages/llmodels/components/data-form.tsx | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/locales/en-US/models.ts b/src/locales/en-US/models.ts index 397c6ac1..8e314dff 100644 --- a/src/locales/en-US/models.ts +++ b/src/locales/en-US/models.ts @@ -95,10 +95,10 @@ export default { 'models.catalog.release.date': 'Release Date', 'models.localpath.gguf.tips.title': 'GGUF format model', 'models.localpat.safe.tips.title': 'Safetensors format model', - 'models.localpath.shared.tips.title': 'Sharded model', + 'models.localpath.shared.tips.title': 'Sharded GGUF Format Model', 'models.localpath.gguf.tips': ' Specify the model file, e.g., /usr/local/models/model.gguf.', 'models.localpath.safe.tips': - 'Specify the model directory that contains .safetensors and config.json files, e.g., /usr/local/models/.', - 'models.localpath.chunks.tips': `Specify the first shard file of the model, e.g., /usr/local/models/model-00001-of-00004.(gguf|safetensors).` + 'Specify the model directory that contains .safetensors and config.json files, e.g., /usr/local/models/model/.', + 'models.localpath.chunks.tips': `Specify the first shard file of the model, e.g., /usr/local/models/model-00001-of-00004.gguf.` }; diff --git a/src/locales/zh-CN/models.ts b/src/locales/zh-CN/models.ts index a06d70c9..14f020c2 100644 --- a/src/locales/zh-CN/models.ts +++ b/src/locales/zh-CN/models.ts @@ -91,11 +91,11 @@ export default { 'models.catalog.release.date': '发布日期', 'models.localpath.gguf.tips.title': 'GGUF 格式模型', 'models.localpat.safe.tips.title': 'safetensors 格式模型', - 'models.localpath.shared.tips.title': '分片的模型', + 'models.localpath.shared.tips.title': '分片的 GGUF 格式模型', 'models.localpath.gguf.tips': '指向模型文件,例如 /usr/local/models/model.gguf', 'models.localpath.safe.tips': - '指向包含 .safetensors, config.json 文件的模型目录,例如 /usr/local/models/', + '指向包含 .safetensors, config.json 文件的模型目录,例如 /usr/local/models/model/', 'models.localpath.chunks.tips': - '指向模型第一个分片文件,例如 /usr/local/models/model-00001-of-00004.(gguf|safetensors)' + '指向模型第一个分片文件,例如 /usr/local/models/model-00001-of-00004.gguf' }; diff --git a/src/pages/llmodels/components/data-form.tsx b/src/pages/llmodels/components/data-form.tsx index 1eceaa75..b9a514d0 100644 --- a/src/pages/llmodels/components/data-form.tsx +++ b/src/pages/llmodels/components/data-form.tsx @@ -104,13 +104,13 @@ const DataForm: React.FC = forwardRef((props, ref) => { title: intl.formatMessage({ id: 'models.localpath.gguf.tips.title' }), tips: intl.formatMessage({ id: 'models.localpath.gguf.tips' }) }, - { - title: intl.formatMessage({ id: 'models.localpat.safe.tips.title' }), - tips: intl.formatMessage({ id: 'models.localpath.safe.tips' }) - }, { title: intl.formatMessage({ id: 'models.localpath.shared.tips.title' }), tips: intl.formatMessage({ id: 'models.localpath.chunks.tips' }) + }, + { + title: intl.formatMessage({ id: 'models.localpat.safe.tips.title' }), + tips: intl.formatMessage({ id: 'models.localpath.safe.tips' }) } ];