Skip to content

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

feat(ui): extend max prompt label length to 36 characters (#2819)

Marc Klingen6058fc7388d0
diff --git a/web/src/features/prompts/server/utils/validation.ts b/web/src/features/prompts/server/utils/validation.ts
index 1e838d3a0c..d911ee5737 100644
--- a/web/src/features/prompts/server/utils/validation.ts
+++ b/web/src/features/prompts/server/utils/validation.ts
@@ -15,7 +15,7 @@ export enum PromptType {
export const PromptLabelSchema = z
.string()
.min(1)
- .max(20)
+ .max(36)
.regex(
/^[a-z0-9_\-.]+$/,
"Label must be lowercase alphanumeric with optional underscores, hyphens, or periods",