Skip to content

Commit

Permalink
4MB after all (#1896)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Sep 29, 2023
1 parent 63112f1 commit a9cf48f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions front/lib/api/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export async function upgradeWorkspace(workspaceId: number) {

plan.limits.dataSources.count = -1;
plan.limits.dataSources.documents.count = -1;
// Enforce 1MB limitation even for upgraded workspaces.
plan.limits.dataSources.documents.sizeMb = 1;
// Enforce 4MB limitation even for upgraded workspaces.
plan.limits.dataSources.documents.sizeMb = 4;
plan.limits.dataSources.managed = true;
plan.limits.largeModels = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function main() {

async function set1MBLimit(live: boolean, workspace: Workspace) {
const plan = planForWorkspace(workspace);
plan.limits.dataSources.documents.sizeMb = 1;
plan.limits.dataSources.documents.sizeMb = 4;
if (live) {
await workspace.update({
plan: JSON.stringify(plan),
Expand Down

0 comments on commit a9cf48f

Please sign in to comment.