diff --git a/src/locales/en-US/models.ts b/src/locales/en-US/models.ts index 4ef4cb04c..6d08e3604 100644 --- a/src/locales/en-US/models.ts +++ b/src/locales/en-US/models.ts @@ -218,6 +218,7 @@ export default { 'models.mymodels.status.inactive': 'Stopped', 'models.mymodels.status.degrade': 'Not Ready', 'models.mymodels.status.active': 'Ready', + 'models.mymodels.status.not_stopped': 'Not Stopped', 'models.form.kvCache.tips': 'Extended KV cache and speculative decoding are only available with built-in backends (vLLM / SGLang), Please switch the backend to enable them.', 'models.form.kvCache.tips2': diff --git a/src/locales/ja-JP/models.ts b/src/locales/ja-JP/models.ts index 17c5778b6..917657817 100644 --- a/src/locales/ja-JP/models.ts +++ b/src/locales/ja-JP/models.ts @@ -218,6 +218,7 @@ export default { 'models.mymodels.status.inactive': 'Stopped', 'models.mymodels.status.degrade': 'Not Ready', 'models.mymodels.status.active': 'Ready', + 'models.mymodels.status.not_stopped': '未停止', 'models.form.kvCache.tips': 'Extended KV cache and speculative decoding are only available with built-in backends (vLLM / SGLang), Please switch the backend to enable them.', 'models.form.kvCache.tips2': diff --git a/src/locales/ru-RU/models.ts b/src/locales/ru-RU/models.ts index fc4e6df3a..39500ad64 100644 --- a/src/locales/ru-RU/models.ts +++ b/src/locales/ru-RU/models.ts @@ -222,6 +222,7 @@ export default { 'models.mymodels.status.inactive': 'Остановлен', 'models.mymodels.status.degrade': 'Не готов', 'models.mymodels.status.active': 'Готов', + 'models.mymodels.status.not_stopped': 'Не остановлен', 'models.form.kvCache.tips': 'Расширенный KV-кэш и спекулятивное декодирование доступны только для встроенных бэкендов (vLLM / SGLang). Пожалуйста, переключите бэкенд, чтобы включить их.', 'models.form.kvCache.tips2': diff --git a/src/locales/zh-CN/models.ts b/src/locales/zh-CN/models.ts index a4bb78513..ef33cbd13 100644 --- a/src/locales/zh-CN/models.ts +++ b/src/locales/zh-CN/models.ts @@ -207,6 +207,7 @@ export default { 'models.mymodels.status.inactive': '已停止', 'models.mymodels.status.degrade': '异常', 'models.mymodels.status.active': '可用', + 'models.mymodels.status.not_stopped': '非停止', 'models.form.kvCache.tips': '扩展 KV 缓存和推测解码仅在内置后端(vLLM / SGLang)可用,请切换后端以启用。', 'models.form.kvCache.tips2': '仅在使用内置推理后端(vLLM 或 SGLang)时支持。', diff --git a/src/pages/llmodels/config/index.ts b/src/pages/llmodels/config/index.ts index 72262e47a..b89f1e8c2 100644 --- a/src/pages/llmodels/config/index.ts +++ b/src/pages/llmodels/config/index.ts @@ -198,19 +198,22 @@ export const status: any = { export const MyModelsStatusValueMap = { Inactive: 'stopped', Degrade: 'not_ready', - Active: 'ready' + Active: 'ready', + NotStopped: 'not_stopped' }; export const MyModelsStatusMap = { [MyModelsStatusValueMap.Inactive]: StatusMaps.inactive, [MyModelsStatusValueMap.Degrade]: StatusMaps.error, - [MyModelsStatusValueMap.Active]: StatusMaps.success + [MyModelsStatusValueMap.Active]: StatusMaps.success, + [MyModelsStatusValueMap.NotStopped]: StatusMaps.transitioning }; export const MyModelsStatusLabelMap = { [MyModelsStatusValueMap.Inactive]: 'models.mymodels.status.inactive', [MyModelsStatusValueMap.Degrade]: 'models.mymodels.status.degrade', - [MyModelsStatusValueMap.Active]: 'models.mymodels.status.active' + [MyModelsStatusValueMap.Active]: 'models.mymodels.status.active', + [MyModelsStatusValueMap.NotStopped]: 'models.mymodels.status.not_stopped' }; export const ScheduleValueMap = { diff --git a/src/pages/llmodels/hooks/use-filter-status.tsx b/src/pages/llmodels/hooks/use-filter-status.tsx index df8720ba2..246ef246d 100644 --- a/src/pages/llmodels/hooks/use-filter-status.tsx +++ b/src/pages/llmodels/hooks/use-filter-status.tsx @@ -42,6 +42,13 @@ const useFilterStatus = (options: { label: intl.formatMessage({ id: 'models.mymodels.status.degrade' }) + }, + { + value: MyModelsStatusValueMap.NotStopped, + color: 'var(--ant-color-info)', + label: intl.formatMessage({ + id: 'models.mymodels.status.not_stopped' + }) } ]; diff --git a/src/pages/llmodels/user-models.tsx b/src/pages/llmodels/user-models.tsx index ab36ee0bc..bb82fd316 100644 --- a/src/pages/llmodels/user-models.tsx +++ b/src/pages/llmodels/user-models.tsx @@ -85,6 +85,13 @@ const UserModels: React.FC = () => { label: intl.formatMessage({ id: 'models.mymodels.status.degrade' }) + }, + { + value: MyModelsStatusValueMap.NotStopped, + color: 'var(--ant-color-info)', + label: intl.formatMessage({ + id: 'models.mymodels.status.not_stopped' + }) } ]; }, [intl]);