Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/locales/en-US/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
1 change: 1 addition & 0 deletions src/locales/ja-JP/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
1 change: 1 addition & 0 deletions src/locales/ru-RU/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh-CN/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)时支持。',
Expand Down
9 changes: 6 additions & 3 deletions src/pages/llmodels/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
7 changes: 7 additions & 0 deletions src/pages/llmodels/hooks/use-filter-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
})
}
];

Expand Down
7 changes: 7 additions & 0 deletions src/pages/llmodels/user-models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down