You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(billing): drop extractGatedModel; the gate copy doesn't name the model
The regex existed only to fish the model id back out of our own error prose
so the modal could name it — and the session path only ever sees the
stringified message, so even a structured gateway field would need the same
string-fishing. The user just sent a message on the model they picked, so
"This model isn't included in the free tier" is unambiguous. Deletes the
regex, the store's model field, and the show-args threading.
Generated-By: PostHog Code
Task-Id: 1039ea23-9930-44e2-9888-b05cf8b129ec
/** usage.code_usage_billed — absent means unknown, not free. */
16
15
billed: boolean|undefined;
17
16
}): UsageLimitContent{
18
-
const{ cause,model,resetLabel, billed }=args;
17
+
const{ cause, resetLabel, billed }=args;
19
18
20
19
if(cause==="model_gate"){
21
20
return{
22
21
title: "Unlock premium models",
23
-
description: `${model ? `${model} isn't` : "This model isn't"} included in the free tier. Add a payment method to your organization to unlock all models — you only pay for what you use. You can keep working now by switching to an included model.`,
22
+
description:
23
+
"This model isn't included in the free tier. Add a payment method to your organization to unlock all models — you only pay for what you use. You can keep working now by switching to an included model.",
0 commit comments