From 562751c913a09499ffba8b5d8fca88907fce7b5a Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Fri, 5 Dec 2025 01:14:01 +0900 Subject: [PATCH] fix: disable recordInputs to prevent Langfuse media upload timeout When images are included in chat messages, the AI SDK telemetry with recordInputs: true sends base64 image data to Langfuse. Langfuse then attempts to upload these images to media storage, causing 1m31s timeouts. Setting recordInputs: false prevents this while still capturing user text input via setTraceInput(). --- lib/langfuse.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/langfuse.ts b/lib/langfuse.ts index 58d9629..a966059 100644 --- a/lib/langfuse.ts +++ b/lib/langfuse.ts @@ -72,7 +72,9 @@ export function getTelemetryConfig(params: { return { isEnabled: true, - recordInputs: true, + // Disable automatic input recording to avoid uploading large base64 images to Langfuse media + // User text input is recorded manually via setTraceInput + recordInputs: false, recordOutputs: true, metadata: { sessionId: params.sessionId,