fix: access source error
This commit is contained in:
@@ -59,11 +59,11 @@ export const ActionList: ActionItem[] = [
|
||||
key: 'api',
|
||||
icon: icons.ApiOutlined
|
||||
},
|
||||
{
|
||||
label: 'models.button.accessSettings',
|
||||
key: 'accessControl',
|
||||
icon: icons.Permission
|
||||
},
|
||||
// {
|
||||
// label: 'models.button.accessSettings',
|
||||
// key: 'accessControl',
|
||||
// icon: icons.Permission
|
||||
// },
|
||||
{
|
||||
label: 'common.button.stop',
|
||||
key: 'stop',
|
||||
|
||||
@@ -430,6 +430,7 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
|
||||
restart_on_error: true,
|
||||
distributed_inference_across_workers: true,
|
||||
mode: 'throughput',
|
||||
enable_model_access: true,
|
||||
generic_proxy: false,
|
||||
extended_kv_cache: {
|
||||
enabled: false,
|
||||
|
||||
@@ -146,15 +146,15 @@ const UserModels: React.FC = () => {
|
||||
};
|
||||
|
||||
const getStatus = useCallback((model: any) => {
|
||||
if (!model.replicas && !model.ready_replicas) {
|
||||
if (!model.replicas && !model.ready_endpoints) {
|
||||
return MyModelsStatusValueMap.Inactive;
|
||||
}
|
||||
|
||||
if (model.replicas > 0 && !model.ready_replicas) {
|
||||
if (model.replicas > 0 && !model.ready_endpoints) {
|
||||
return MyModelsStatusValueMap.Degrade;
|
||||
}
|
||||
|
||||
if (model.ready_replicas > 0 && model.replicas > 0) {
|
||||
if (model.ready_endpoints > 0 && model.replicas > 0) {
|
||||
return MyModelsStatusValueMap.Active;
|
||||
}
|
||||
return MyModelsStatusValueMap.Degrade;
|
||||
|
||||
Reference in New Issue
Block a user