diff --git a/src/components/status-tag/index.tsx b/src/components/status-tag/index.tsx index e858ccae..1e6ba8ac 100644 --- a/src/components/status-tag/index.tsx +++ b/src/components/status-tag/index.tsx @@ -75,7 +75,13 @@ const StatusTag: React.FC = ({
{statusValue.message}
diff --git a/src/pages/llmodels/components/table-list.tsx b/src/pages/llmodels/components/table-list.tsx index dacf34ef..ff8e6cb1 100644 --- a/src/pages/llmodels/components/table-list.tsx +++ b/src/pages/llmodels/components/table-list.tsx @@ -461,7 +461,10 @@ const Models: React.FC = ({ return `${modelSourceMap.huggingface}/${record.huggingface_repo_id}`; } if (record.source === modelSourceMap.local_path_value) { - return `${modelSourceMap.local_path}${record.local_path}`; + const localPath = _.startsWith(record.local_path, '/') + ? record.local_path + : `/${record.local_path}`; + return `${modelSourceMap.local_path}${localPath}`; } if (record.source === modelSourceMap.ollama_library_value) { return `${modelSourceMap.ollama_library}/${record.ollama_library_model_name}`;