Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(media): increase rate-limit to use ingestion budget (#4907)

Hassieb Pakzada842625bd130
diff --git a/web/src/pages/api/public/media/[mediaId].ts b/web/src/pages/api/public/media/[mediaId].ts
index 34053715b3..2f37e24040 100644
--- a/web/src/pages/api/public/media/[mediaId].ts
+++ b/web/src/pages/api/public/media/[mediaId].ts
@@ -73,6 +73,7 @@ export default withMiddlewares({
}),
bodySchema: PatchMediaBodySchema,
responseSchema: z.void(),
+ rateLimitResource: "ingestion",
fn: async ({ query, body, auth }) => {
if (auth.scope.accessLevel !== "all") throw new ForbiddenError();
diff --git a/web/src/pages/api/public/media/index.ts b/web/src/pages/api/public/media/index.ts
index 7692dacfcb..6cc859e8c9 100644
--- a/web/src/pages/api/public/media/index.ts
+++ b/web/src/pages/api/public/media/index.ts
@@ -26,6 +26,7 @@ export default withMiddlewares({
bodySchema: GetMediaUploadUrlQuerySchema,
responseSchema: GetMediaUploadUrlResponseSchema,
successStatusCode: 201,
+ rateLimitResource: "ingestion",
fn: async ({ body, auth }) => {
if (auth.scope.accessLevel !== "all") throw new ForbiddenError();