Skip to content

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

chore(ui): add support for input_text and output_text in markdown rendering (#6625)

marliessophieff8ccf1d6149
diff --git a/web/src/components/schemas/ChatMlSchema.ts b/web/src/components/schemas/ChatMlSchema.ts
index c181938889..33b20b9215 100644
--- a/web/src/components/schemas/ChatMlSchema.ts
+++ b/web/src/components/schemas/ChatMlSchema.ts
@@ -1,8 +1,12 @@
import { z } from "zod";
-// OpenAI API Content Schema defined as per https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages, 20.08.2024
+// OpenAI API Content Schema defined as per https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages, 28.04.2025
const OpenAITextContentPart = z.object({
- type: z.literal("text"),
+ type: z.union([
+ z.literal("text"),
+ z.literal("input_text"),
+ z.literal("output_text"),
+ ]),
text: z.string(),
});