Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NicHaley committed Jan 20, 2024
1 parent 4c1f9f9 commit 2780b70
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/lib/ai/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ export async function createCompletion<T extends AnyZodObject>({
if (totalProTokens >= tokenLimits.proTokenLimit) {
throw new HttpError({
statusCode: 402,
message: "You have exceeded your pro token limit.",
message: "You have exceeded your Pro token limit.",
});
}
} else if (totalBaseTokens >= tokenLimits.baseTokenLimit) {
throw new HttpError({
statusCode: 402,
message: "You have exceeded your base token limit.",
message: "You have exceeded your Basic token limit.",
});
}

Expand Down
8 changes: 4 additions & 4 deletions apps/app/src/app/(authenticated)/[workspace]/billing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ export default async function Billing({
: null;
const freeTierFeature = [
"25K Pro tokens",
"1M Basic tokens",
"500K Basic tokens",
"Slack support",
];

const proTierFeature = [
`2M Pro tokens`,
"Unlimited Basic tokens",
"10M Basic tokens",
"Priority support",
"Higher rate limits",
];

const customTierFeature = [
"BYOK (Bring your own key)",
"Unlimited Pro tokens",
"Option to BYOK (bring your own key)",
"Custom token limits",
"Dedicated support channel",
"Highest rate limits",
];
Expand Down
2 changes: 0 additions & 2 deletions packages/cli/src/commands/review/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ export function files(program: Command) {
*/
checkIfValidRoot();

console.log(11111, options.model);

/**
* Import ESM modules
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/db/models/subscription/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const FREE_BASE_TOKEN_LIMIT = 1000000;
export const FREE_BASE_TOKEN_LIMIT = 500000;
export const FREE_PRO_TOKEN_LIMIT = 25000;

0 comments on commit 2780b70

Please sign in to comment.