Skip to content

Commit d182db7

Browse files
authored
fix(gateway): rate limit Gastown free models by user (#3648)
fix(gateway): rate limit gastown free models by user
1 parent 9603747 commit d182db7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

apps/web/src/lib/feature-detection.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe('isUserRateLimitedFeature', () => {
2525
expect(isUserRateLimitedFeature('cloud-agent')).toBe(true);
2626
expect(isUserRateLimitedFeature('code-review')).toBe(true);
2727
expect(isUserRateLimitedFeature('app-builder')).toBe(true);
28+
expect(isUserRateLimitedFeature('gastown')).toBe(true);
2829
});
2930

3031
test('returns false for client-side products', () => {

apps/web/src/lib/feature-detection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const USER_RATE_LIMITED_FEATURES: ReadonlySet<FeatureValue> = new Set([
5757
'cloud-agent',
5858
'code-review',
5959
'app-builder',
60+
'gastown',
6061
]);
6162

6263
export function isUserRateLimitedFeature(feature: FeatureValue | null): boolean {

0 commit comments

Comments
 (0)