@dashadmin/dash-admin 1.3.71 → 1.3.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/systemResources.js +55 -0
- package/package.json +14 -14
- package/src/systemResources.tsx +55 -0
package/dist/systemResources.js
CHANGED
|
@@ -598,6 +598,61 @@ const systemResources = [
|
|
|
598
598
|
fieldProps: {
|
|
599
599
|
helperText: "AWS Bedrock only. Write-only \u2014 leave blank to keep the current value."
|
|
600
600
|
}
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
// The platform-wide floor of SystemAiProviderKey::resolveServiceTier()'s
|
|
604
|
+
// 3-level cascade (System -> Tenancy -> Lab) — see
|
|
605
|
+
// vanexa-backend-domain/docs/CASCADING_AI_SETTINGS_KEY_PERMISSIONS.md.
|
|
606
|
+
// Reaches for the SAME static-choices 'select'/'multiselect' types the
|
|
607
|
+
// Tenancy-level "AI Providers" tab already uses (dash-auto-admin's
|
|
608
|
+
// AttributeToInput/AttributeToField) — a hand-written schema like this
|
|
609
|
+
// one is a normal consumer of those types too, not just the dynamic
|
|
610
|
+
// setting_formats pipeline.
|
|
611
|
+
tab: "General",
|
|
612
|
+
label: "DeepInfra Service Tier (Platform Default)",
|
|
613
|
+
attribute: "settings.service_tier",
|
|
614
|
+
type: "select",
|
|
615
|
+
inList: false,
|
|
616
|
+
inEdit: true,
|
|
617
|
+
inShow: true,
|
|
618
|
+
inCreate: false,
|
|
619
|
+
options: [
|
|
620
|
+
{ id: "flex", name: "Flex (0.8x \u2014 best-effort, may wait or be rejected)" },
|
|
621
|
+
{ id: "standard", name: "Standard (1.0x)" },
|
|
622
|
+
{ id: "priority", name: "Priority (1.5x \u2014 skips queues)" }
|
|
623
|
+
],
|
|
624
|
+
fieldProps: {
|
|
625
|
+
helperText: "DeepInfra only. Used whenever a Tenancy has not set its own default.",
|
|
626
|
+
// Matches resolveServiceTier()'s OWN eventual fallback
|
|
627
|
+
// (SystemAiProviderKey::SERVICE_TIER_DEFAULT) — a fresh
|
|
628
|
+
// row with no settings yet shows what would actually be
|
|
629
|
+
// used, not a misleadingly blank field.
|
|
630
|
+
defaultValue: "standard"
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
tab: "General",
|
|
635
|
+
label: "DeepInfra Tiers Any Tenancy May Ever Use",
|
|
636
|
+
attribute: "settings.service_tier_allowed",
|
|
637
|
+
type: "multiselect",
|
|
638
|
+
inList: false,
|
|
639
|
+
inEdit: true,
|
|
640
|
+
inShow: true,
|
|
641
|
+
inCreate: false,
|
|
642
|
+
options: [
|
|
643
|
+
{ id: "flex", name: "Flex (0.8x \u2014 best-effort, may wait or be rejected)" },
|
|
644
|
+
{ id: "standard", name: "Standard (1.0x)" },
|
|
645
|
+
{ id: "priority", name: "Priority (1.5x \u2014 skips queues)" }
|
|
646
|
+
],
|
|
647
|
+
fieldProps: {
|
|
648
|
+
helperText: "DeepInfra only. The HARD CEILING \u2014 a Tenancy's own allow-list can only narrow this, never exceed it. Leave all three selected unless a tier should be forbidden platform-wide.",
|
|
649
|
+
// Matches resolveServiceTier()'s own default when this
|
|
650
|
+
// key has never been saved (SystemAiProviderKey::
|
|
651
|
+
// providerSetting()'s $default param, called with
|
|
652
|
+
// SERVICE_TIERS) — an unrestricted ceiling, shown as such
|
|
653
|
+
// rather than as an empty, seemingly-forbid-everything list.
|
|
654
|
+
defaultValue: ["flex", "standard", "priority"]
|
|
655
|
+
}
|
|
601
656
|
}
|
|
602
657
|
],
|
|
603
658
|
menu: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashadmin/dash-admin",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.72",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"@rollup/plugin-node-resolve": "latest",
|
|
39
39
|
"@rollup/plugin-replace": "latest",
|
|
40
40
|
"@rollup/plugin-typescript": "latest",
|
|
41
|
-
"@dashadmin/dash-admin-state": "1.3.
|
|
42
|
-
"@dashadmin/dash-auto-admin": "1.3.
|
|
43
|
-
"@dashadmin/dash-constants": "1.3.
|
|
44
|
-
"@dashadmin/dash-dialog": "1.3.
|
|
45
|
-
"@dashadmin/dash-styles": "1.3.
|
|
41
|
+
"@dashadmin/dash-admin-state": "1.3.72",
|
|
42
|
+
"@dashadmin/dash-auto-admin": "1.3.72",
|
|
43
|
+
"@dashadmin/dash-constants": "1.3.72",
|
|
44
|
+
"@dashadmin/dash-dialog": "1.3.72",
|
|
45
|
+
"@dashadmin/dash-styles": "1.3.72",
|
|
46
46
|
"framer-motion": "latest",
|
|
47
47
|
"prop-types": "latest",
|
|
48
48
|
"query-string": "latest",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"rollup-plugin-dts": "latest",
|
|
62
62
|
"rollup-plugin-peer-deps-external": "latest",
|
|
63
63
|
"rollup-plugin-svg": "latest",
|
|
64
|
-
"@dashadmin/dash-modal": "1.3.
|
|
65
|
-
"@dashadmin/dash-components": "1.3.
|
|
66
|
-
"@dashadmin/dash-axios-hook": "1.3.
|
|
67
|
-
"@dashadmin/dash-utils": "1.3.
|
|
68
|
-
"@dashadmin/dash-auth": "1.3.
|
|
64
|
+
"@dashadmin/dash-modal": "1.3.72",
|
|
65
|
+
"@dashadmin/dash-components": "1.3.72",
|
|
66
|
+
"@dashadmin/dash-axios-hook": "1.3.72",
|
|
67
|
+
"@dashadmin/dash-utils": "1.3.72",
|
|
68
|
+
"@dashadmin/dash-auth": "1.3.72"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@babel/core": "latest",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"@types/react-dom": "latest",
|
|
79
79
|
"@zerollup/ts-transform-paths": "latest",
|
|
80
80
|
"babel-loader": "latest",
|
|
81
|
-
"@dashadmin/dash-eslint": "1.3.
|
|
82
|
-
"@dashadmin/dash-tsconfig": "1.3.
|
|
81
|
+
"@dashadmin/dash-eslint": "1.3.72",
|
|
82
|
+
"@dashadmin/dash-tsconfig": "1.3.72",
|
|
83
83
|
"eslint": "latest",
|
|
84
84
|
"eslint-config-airbnb": "latest",
|
|
85
85
|
"eslint-config-airbnb-typescript": "latest",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"eslint-plugin-prettier": "latest",
|
|
94
94
|
"eslint-plugin-react": "latest",
|
|
95
95
|
"eslint-plugin-react-hooks": "latest",
|
|
96
|
-
"@dashadmin/dash-prettier": "1.3.
|
|
96
|
+
"@dashadmin/dash-prettier": "1.3.72",
|
|
97
97
|
"query-string": "latest",
|
|
98
98
|
"react-dom": "19.2.8",
|
|
99
99
|
"rollup": "latest",
|
package/src/systemResources.tsx
CHANGED
|
@@ -609,6 +609,61 @@ const systemResources: IAppResourceConfig[] = [
|
|
|
609
609
|
helperText: 'AWS Bedrock only. Write-only — leave blank to keep the current value.',
|
|
610
610
|
},
|
|
611
611
|
},
|
|
612
|
+
{
|
|
613
|
+
// The platform-wide floor of SystemAiProviderKey::resolveServiceTier()'s
|
|
614
|
+
// 3-level cascade (System -> Tenancy -> Lab) — see
|
|
615
|
+
// vanexa-backend-domain/docs/CASCADING_AI_SETTINGS_KEY_PERMISSIONS.md.
|
|
616
|
+
// Reaches for the SAME static-choices 'select'/'multiselect' types the
|
|
617
|
+
// Tenancy-level "AI Providers" tab already uses (dash-auto-admin's
|
|
618
|
+
// AttributeToInput/AttributeToField) — a hand-written schema like this
|
|
619
|
+
// one is a normal consumer of those types too, not just the dynamic
|
|
620
|
+
// setting_formats pipeline.
|
|
621
|
+
tab: 'General',
|
|
622
|
+
label: 'DeepInfra Service Tier (Platform Default)',
|
|
623
|
+
attribute: 'settings.service_tier',
|
|
624
|
+
type: 'select',
|
|
625
|
+
inList: false,
|
|
626
|
+
inEdit: true,
|
|
627
|
+
inShow: true,
|
|
628
|
+
inCreate: false,
|
|
629
|
+
options: [
|
|
630
|
+
{ id: 'flex', name: 'Flex (0.8x — best-effort, may wait or be rejected)' },
|
|
631
|
+
{ id: 'standard', name: 'Standard (1.0x)' },
|
|
632
|
+
{ id: 'priority', name: 'Priority (1.5x — skips queues)' },
|
|
633
|
+
],
|
|
634
|
+
fieldProps: {
|
|
635
|
+
helperText: 'DeepInfra only. Used whenever a Tenancy has not set its own default.',
|
|
636
|
+
// Matches resolveServiceTier()'s OWN eventual fallback
|
|
637
|
+
// (SystemAiProviderKey::SERVICE_TIER_DEFAULT) — a fresh
|
|
638
|
+
// row with no settings yet shows what would actually be
|
|
639
|
+
// used, not a misleadingly blank field.
|
|
640
|
+
defaultValue: 'standard',
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
tab: 'General',
|
|
645
|
+
label: 'DeepInfra Tiers Any Tenancy May Ever Use',
|
|
646
|
+
attribute: 'settings.service_tier_allowed',
|
|
647
|
+
type: 'multiselect',
|
|
648
|
+
inList: false,
|
|
649
|
+
inEdit: true,
|
|
650
|
+
inShow: true,
|
|
651
|
+
inCreate: false,
|
|
652
|
+
options: [
|
|
653
|
+
{ id: 'flex', name: 'Flex (0.8x — best-effort, may wait or be rejected)' },
|
|
654
|
+
{ id: 'standard', name: 'Standard (1.0x)' },
|
|
655
|
+
{ id: 'priority', name: 'Priority (1.5x — skips queues)' },
|
|
656
|
+
],
|
|
657
|
+
fieldProps: {
|
|
658
|
+
helperText: 'DeepInfra only. The HARD CEILING — a Tenancy\'s own allow-list can only narrow this, never exceed it. Leave all three selected unless a tier should be forbidden platform-wide.',
|
|
659
|
+
// Matches resolveServiceTier()'s own default when this
|
|
660
|
+
// key has never been saved (SystemAiProviderKey::
|
|
661
|
+
// providerSetting()'s $default param, called with
|
|
662
|
+
// SERVICE_TIERS) — an unrestricted ceiling, shown as such
|
|
663
|
+
// rather than as an empty, seemingly-forbid-everything list.
|
|
664
|
+
defaultValue: ['flex', 'standard', 'priority'],
|
|
665
|
+
},
|
|
666
|
+
},
|
|
612
667
|
],
|
|
613
668
|
|
|
614
669
|
menu: [
|