Skip to content

Commit

Permalink
getAorBRandom
Browse files Browse the repository at this point in the history
  • Loading branch information
eatski committed May 22, 2024
1 parent f3cd0ef commit d043ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/abtesting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const validateABTestingVariant = (
};

export const getAorBRandom = (rate: number): ABTestingVariant => {
return Math.random() < rate
return Math.random() > rate
? AB_TESTING_VARIANTS.ONLY_SONNET
: AB_TESTING_VARIANTS.GPT4O;
};

0 comments on commit d043ef9

Please sign in to comment.