🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(comments): increase comment character limit (#9906)
Michael Fröhlich258cc5157b05
diff --git a/fern/apis/server/definition/comments.yml b/fern/apis/server/definition/comments.ymlindex 9abb469255..e9baaa7dbe 100644--- a/fern/apis/server/definition/comments.yml+++ b/fern/apis/server/definition/comments.yml@@ -58,7 +58,7 @@ types:docs: The id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown.content:type: string- docs: The content of the comment. May include markdown. Currently limited to 3000 characters.+ docs: The content of the comment. May include markdown. Currently limited to 5000 characters.authorUserId:type: optional<string>docs: The id of the user who created the comment.diff --git a/packages/shared/src/features/comments/types.ts b/packages/shared/src/features/comments/types.tsindex 208c07f02b..821ca933fd 100644--- a/packages/shared/src/features/comments/types.ts+++ b/packages/shared/src/features/comments/types.ts@@ -1,6 +1,6 @@import { z } from "zod/v4";-const MAX_COMMENT_LENGTH = 3000;+const MAX_COMMENT_LENGTH = 5000;const COMMENT_OBJECT_TYPES = ["TRACE",diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.ymlindex db1223e91f..9885ad97a9 100644--- a/web/public/generated/api/openapi.yml+++ b/web/public/generated/api/openapi.yml@@ -5291,7 +5291,7 @@ components:type: stringdescription: >-The content of the comment. May include markdown. Currently limited- to 3000 characters.+ to 5000 characters.authorUserId:type: stringnullable: truediff --git a/web/src/__tests__/async/comments-api.servertest.ts b/web/src/__tests__/async/comments-api.servertest.tsindex 0702fc1d2d..5869b095a5 100644--- a/web/src/__tests__/async/comments-api.servertest.ts+++ b/web/src/__tests__/async/comments-api.servertest.ts@@ -106,7 +106,7 @@ describe("Create and get comments", () => {}});- it("should fail to create comment if content is larger than 3000 characters", async () => {+ it("should fail to create comment if content is larger than 5000 characters", async () => {try {await makeZodVerifiedAPICall(z.object({@@ -116,7 +116,7 @@ describe("Create and get comments", () => {"POST","/api/public/comments",{- content: "a".repeat(3001),+ content: "a".repeat(5001),objectId: "1234",objectType: "TRACE",projectId: "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",@@ -124,7 +124,7 @@ describe("Create and get comments", () => {);} catch (error) {expect((error as Error).message).toBe(- `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"origin\":\"string\",\"code\":\"too_big\",\"maximum\":3000,\"inclusive\":true,\"path\":[\"content\"],\"message\":\"Too big: expected string to have <=3000 characters\"}]}`,+ `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"origin\":\"string\",\"code\":\"too_big\",\"maximum\":5000,\"inclusive\":true,\"path\":[\"content\"],\"message\":\"Too big: expected string to have <=5000 characters\"}]}`,);}});diff --git a/web/src/features/public-api/types/comments.ts b/web/src/features/public-api/types/comments.tsindex 0ced2c71e9..22041c5ae3 100644--- a/web/src/features/public-api/types/comments.ts+++ b/web/src/features/public-api/types/comments.ts@@ -18,7 +18,7 @@ const APIComment = zupdatedAt: z.coerce.date(),objectType: z.enum(CommentObjectType),objectId: z.string(),- content: z.string().min(1).max(3000),+ content: z.string().min(1).max(5000),authorUserId: z.string().nullish(),}).strict();