diff --git a/client/web/BUILD.bazel b/client/web/BUILD.bazel index 20cc69411ed..22b1ab677ec 100644 --- a/client/web/BUILD.bazel +++ b/client/web/BUILD.bazel @@ -1068,7 +1068,6 @@ ts_project( "src/enterprise/site-admin/dotcom/customers/SiteAdminCustomersPage.tsx", "src/enterprise/site-admin/dotcom/productSubscriptions/CodyGatewayRateLimitModal.tsx", "src/enterprise/site-admin/dotcom/productSubscriptions/CodyServicesSection.tsx", - "src/enterprise/site-admin/dotcom/productSubscriptions/ModelBadges.tsx", "src/enterprise/site-admin/dotcom/productSubscriptions/SiteAdminCreateProductSubscriptionPage.tsx", "src/enterprise/site-admin/dotcom/productSubscriptions/SiteAdminGenerateProductLicenseForSubscriptionForm.tsx", "src/enterprise/site-admin/dotcom/productSubscriptions/SiteAdminLicenseKeyLookupPage.tsx", diff --git a/client/web/src/enterprise/site-admin/dotcom/productSubscriptions/CodyGatewayRateLimitModal.tsx b/client/web/src/enterprise/site-admin/dotcom/productSubscriptions/CodyGatewayRateLimitModal.tsx index 12e104d8312..fdbb25281e7 100644 --- a/client/web/src/enterprise/site-admin/dotcom/productSubscriptions/CodyGatewayRateLimitModal.tsx +++ b/client/web/src/enterprise/site-admin/dotcom/productSubscriptions/CodyGatewayRateLimitModal.tsx @@ -13,7 +13,6 @@ import type { } from '../../../../graphql-operations' import { UPDATE_CODY_GATEWAY_CONFIG } from './backend' -import { ModelBadges } from './ModelBadges' import { numberFormatter, prettyInterval } from './utils' export interface CodyGatewayRateLimitModalProps { @@ -39,11 +38,6 @@ export const CodyGatewayRateLimitModal: React.FunctionComponent< setLimitInterval(parseInt(event.target.value, 10)) }, []) - const [allowedModels, setAllowedModels] = useState(current?.allowedModels?.join(',') ?? '') - const onChangeAllowedModels = useCallback>(event => { - setAllowedModels(event.target.value) - }, []) - const [updateCodyGatewayConfig, { loading, error }] = useMutation< UpdateCodyGatewayConfigResult, UpdateCodyGatewayConfigVariables @@ -62,7 +56,6 @@ export const CodyGatewayRateLimitModal: React.FunctionComponent< ? { chatCompletionsRateLimit: String(limit), chatCompletionsRateLimitIntervalSeconds: limitInterval, - chatCompletionsAllowedModels: splitModels(allowedModels), } : {}), @@ -70,7 +63,6 @@ export const CodyGatewayRateLimitModal: React.FunctionComponent< ? { codeCompletionsRateLimit: String(limit), codeCompletionsRateLimitIntervalSeconds: limitInterval, - codeCompletionsAllowedModels: splitModels(allowedModels), } : {}), @@ -78,7 +70,6 @@ export const CodyGatewayRateLimitModal: React.FunctionComponent< ? { embeddingsRateLimit: String(limit), embeddingsRateLimitIntervalSeconds: limitInterval, - embeddingsAllowedModels: splitModels(allowedModels), } : {}), }, @@ -91,7 +82,7 @@ export const CodyGatewayRateLimitModal: React.FunctionComponent< logger.error(error) } }, - [updateCodyGatewayConfig, productSubscriptionID, limit, limitInterval, afterSave, allowedModels, mode] + [updateCodyGatewayConfig, productSubscriptionID, limit, limitInterval, afterSave, mode] ) return ( @@ -152,28 +143,6 @@ export const CodyGatewayRateLimitModal: React.FunctionComponent< } /> -
- - } - /> -