Skip to content

Commit ba87395

Browse files
authored
fix: change aiAssetExternalModels to aiAssetCustomEndpoints feature flag (#6691)
* fix: change aiAssetExternalModels to aiAssetCustomModels feature flag * fix: change to aiAssetCustomEndpoints feature flag * update description for field in CRD
1 parent 2efcdc9 commit ba87395

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

backend/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export type DashboardConfig = K8sResourceCommon & {
5656
modelAsService: boolean;
5757
mlflow: boolean;
5858
mcpCatalog: boolean;
59-
aiAssetExternalModels: boolean;
59+
aiAssetCustomEndpoints: boolean;
6060
disableLLMd: boolean;
6161
projectRBAC: boolean;
6262
maasApiKeys: boolean;
@@ -81,7 +81,7 @@ export type DashboardConfig = K8sResourceCommon & {
8181
isLLMdDefault?: boolean;
8282
};
8383
genAiStudioConfig?: {
84-
aiAssetExternalModels?: {
84+
aiAssetCustomEndpoints?: {
8585
externalProviders?: boolean;
8686
clusterDomains?: string[];
8787
};

backend/src/utils/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const blankDashboardCR: DashboardConfig = {
8484
automl: false,
8585
autorag: false,
8686
modelAsService: false,
87-
aiAssetExternalModels: false,
87+
aiAssetCustomEndpoints: false,
8888
maasApiKeys: false,
8989
disableFineTuning: true,
9090
disableKueue: true,
@@ -101,7 +101,7 @@ export const blankDashboardCR: DashboardConfig = {
101101
},
102102
templateOrder: [],
103103
genAiStudioConfig: {
104-
aiAssetExternalModels: {
104+
aiAssetCustomEndpoints: {
105105
externalProviders: false,
106106
clusterDomains: [],
107107
},

frontend/src/__mocks__/mockDashboardConfig.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export type MockDashboardConfigType = {
4343
automl?: boolean;
4444
autorag?: boolean;
4545
modelAsService?: boolean;
46-
aiAssetExternalModels?: boolean;
46+
aiAssetCustomEndpoints?: boolean;
4747
maasApiKeys?: boolean;
4848
trainingJobs?: boolean;
4949
observabilityDashboard?: boolean;
@@ -55,7 +55,7 @@ export type MockDashboardConfigType = {
5555
disableLLMd?: boolean;
5656
deploymentWizardYAMLViewer?: boolean;
5757
genAiStudioConfig?: {
58-
aiAssetExternalModels?: {
58+
aiAssetCustomEndpoints?: {
5959
externalProviders?: boolean;
6060
clusterDomains?: string[];
6161
};
@@ -75,7 +75,7 @@ export const mockDashboardConfig = ({
7575
automl = false,
7676
autorag = false,
7777
modelAsService = true,
78-
aiAssetExternalModels = true,
78+
aiAssetCustomEndpoints = true,
7979
maasApiKeys = false,
8080
disableAppLauncher = false,
8181
disableUserManagement = false,
@@ -109,7 +109,7 @@ export const mockDashboardConfig = ({
109109
deploymentWizardYAMLViewer = false,
110110
hardwareProfileOrder = ['test-hardware-profile'],
111111
genAiStudioConfig = {
112-
aiAssetExternalModels: {
112+
aiAssetCustomEndpoints: {
113113
externalProviders: false,
114114
clusterDomains: [],
115115
},
@@ -261,7 +261,7 @@ export const mockDashboardConfig = ({
261261
automl,
262262
autorag,
263263
modelAsService,
264-
aiAssetExternalModels,
264+
aiAssetCustomEndpoints,
265265
maasApiKeys,
266266
disableKServeAuth,
267267
disableKServeMetrics,

frontend/src/concepts/areas/const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const techPreviewFlags = {
77
automl: false,
88
autorag: false,
99
modelAsService: false,
10-
aiAssetExternalModels: false,
10+
aiAssetCustomEndpoints: false,
1111
maasApiKeys: false,
1212
mlflow: false,
1313
mcpCatalog: false,

frontend/src/k8sTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ export type DashboardCommonConfig = {
13041304
automl?: boolean;
13051305
autorag?: boolean;
13061306
modelAsService?: boolean;
1307-
aiAssetExternalModels?: boolean;
1307+
aiAssetCustomEndpoints?: boolean;
13081308
maasApiKeys?: boolean;
13091309
mlflow?: boolean;
13101310
mcpCatalog?: boolean;
@@ -1340,7 +1340,7 @@ export type DashboardConfigKind = K8sResourceCommon & {
13401340
isLLMdDefault?: boolean;
13411341
};
13421342
genAiStudioConfig?: {
1343-
aiAssetExternalModels?: {
1343+
aiAssetCustomEndpoints?: {
13441344
externalProviders?: boolean;
13451345
clusterDomains?: string[];
13461346
};

manifests/common/crd/odhdashboardconfigs.opendatahub.io.crd.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ spec:
111111
type: boolean
112112
modelAsService:
113113
type: boolean
114-
aiAssetExternalModels:
114+
aiAssetCustomEndpoints:
115115
type: boolean
116116
mlflow:
117117
type: boolean
@@ -269,8 +269,8 @@ spec:
269269
description: 'Configuration options for Gen AI Studio features'
270270
type: object
271271
properties:
272-
aiAssetExternalModels:
273-
description: 'Configuration for AI Asset external model providers feature'
272+
aiAssetCustomEndpoints:
273+
description: 'Configuration for AI Asset custom endpoints feature'
274274
type: object
275275
properties:
276276
externalProviders:

0 commit comments

Comments
 (0)