Skip to content

Commit 3ccdc38

Browse files
feat(admin): default Vercel routing to 50% and clarify UI text (#2786)
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
1 parent 95903ef commit 3ccdc38

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

apps/web/src/app/admin/gateway/RoutingContent.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ export function RoutingContent() {
7070
<CardHeader>
7171
<CardTitle>Vercel Routing Percentage</CardTitle>
7272
<CardDescription>
73-
Control the percentage of traffic routed to the Vercel AI Gateway (vs OpenRouter). Leave
74-
empty to use the default ({DEFAULT_VERCEL_PERCENTAGE}%). Stored in Redis for
75-
sub-millisecond reads on the hot path.
73+
For models available on the Vercel AI Gateway, controls the percentage of traffic routed
74+
to Vercel (vs OpenRouter). Models not available on Vercel always go to OpenRouter, so
75+
overall traffic may still be skewed towards OpenRouter. Leave empty to use the default (
76+
{DEFAULT_VERCEL_PERCENTAGE}%).
7677
</CardDescription>
7778
</CardHeader>
7879
<CardContent className="flex flex-col gap-4">

apps/web/src/lib/ai-gateway/gateway-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as z from 'zod';
22

3-
export const DEFAULT_VERCEL_PERCENTAGE = 10;
3+
export const DEFAULT_VERCEL_PERCENTAGE = 50;
44

55
const vercelRoutingPercentage = z.number().int().min(0).max(100);
66

0 commit comments

Comments
 (0)