🪢 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
fix(llm-tools-and-schemas): allow periods in names (#9296)
Hassieb Pakzad5cb61d6a96e6
diff --git a/web/src/features/llm-schemas/validation.ts b/web/src/features/llm-schemas/validation.tsindex a42f9f6a5b..f01357c062 100644--- a/web/src/features/llm-schemas/validation.ts+++ b/web/src/features/llm-schemas/validation.ts@@ -4,8 +4,8 @@ import { LLMJSONSchema } from "@langfuse/shared";export const LLMSchemaNameSchema = z.string().regex(- /^[a-zA-Z0-9_-]+$/,- "Name must contain only alphanumeric letters, hyphens and underscores",+ /^[a-zA-Z0-9\._-]+$/,+ "Name must contain only alphanumeric letters, hyphens, periods and underscores",).min(1, "Name is required");diff --git a/web/src/features/llm-tools/validation.ts b/web/src/features/llm-tools/validation.tsindex 9ce5cece4a..33e746fe29 100644--- a/web/src/features/llm-tools/validation.ts+++ b/web/src/features/llm-tools/validation.ts@@ -4,8 +4,8 @@ import { LLMJSONSchema } from "@langfuse/shared";export const LLMToolNameSchema = z.string().regex(- /^[a-zA-Z0-9_-]+$/,- "Name must contain only alphanumeric letters, hyphens and underscores",+ /^[a-zA-Z0-9\._-]+$/,+ "Name must contain only alphanumeric letters, hyphens, periods and underscores",).min(1, "Name is required");