-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,7 +222,8 @@ async function handler( | |
api_error: { | ||
type: "data_source_quota_error", | ||
message: | ||
"Data sources are limited to 32 documents on our free plan. Contact [email protected] if you want to increase this limit.", | ||
`Data sources are limited to ${plan.limits.dataSources.documents.count} ` + | ||
`documents on your current plan. Contact [email protected] if you want to increase this limit.`, | ||
}, | ||
}); | ||
} | ||
|
@@ -238,7 +239,10 @@ async function handler( | |
api_error: { | ||
type: "data_source_quota_error", | ||
message: | ||
"Data sources document upload size is limited to 1MB. Contact [email protected] if you want to increase it.", | ||
`Data sources document upload size is limited to ` + | ||
`${plan.limits.dataSources.documents.sizeMb}MB on your current plan. ` + | ||
`You are attempting to upload ${fullText.length} bytes. ` + | ||
`Contact [email protected] if you want to increase it.`, | ||
}, | ||
}); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,7 +164,8 @@ async function handler( | |
api_error: { | ||
type: "data_source_quota_error", | ||
message: | ||
"Data sources are limited to 32 documents on our free plan. Contact [email protected] if you want to increase this limit.", | ||
`Data sources are limited to ${plan.limits.dataSources.documents.count} ` + | ||
`documents on your current plan. Contact [email protected] if you want to increase this limit.`, | ||
}, | ||
}); | ||
} | ||
|
@@ -180,7 +181,10 @@ async function handler( | |
api_error: { | ||
type: "data_source_quota_error", | ||
message: | ||
"Data sources document upload size is limited to 1MB. Contact [email protected] if you want to increase it.", | ||
`Data sources document upload size is limited to ` + | ||
`${plan.limits.dataSources.documents.sizeMb}MB on your current plan. ` + | ||
`You are attempting to upload ${fullText.length} bytes. ` + | ||
`Contact [email protected] if you want to increase it.`, | ||
}, | ||
}); | ||
} | ||
|