🪢 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(playground): parse complex messages when jumping to playground (#3425)
Hassieb Pakzad0e6b676b196e
diff --git a/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx b/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsxindex 690610207e..1cd0794737 100644--- a/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx+++ b/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx@@ -79,6 +79,16 @@ const ParsedChatMessageListSchema = z.array(role: z.nativeEnum(ChatMessageRole),content: z.union([z.string(),+ // If system message is cached, the message is an array of objects with a text property+ z+ .array(+ z+ .object({+ text: z.string(),+ })+ .transform((v) => v.text),+ )+ .transform((v) => v.join("")),z.any().transform((v) => JSON.stringify(v, null, 2)),]),}),