🪢 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
chore: fix output box for playground (#8096)
Max Deichmannf95dd872e690
diff --git a/web/src/features/playground/page/components/GenerationOutput.tsx b/web/src/features/playground/page/components/GenerationOutput.tsxindex 181c17b55d..19f646c9af 100644--- a/web/src/features/playground/page/components/GenerationOutput.tsx+++ b/web/src/features/playground/page/components/GenerationOutput.tsx@@ -88,25 +88,29 @@ export const GenerationOutput = () => {) : null;return (- <div className="relative h-full overflow-auto">+ <div className="relative h-full"><div- className="h-full overflow-auto rounded-lg bg-muted p-4"+ className="h-full overflow-auto rounded-lg bg-muted"ref={scrollAreaRef}>- <div className="mb-4 flex w-full items-center">- <p className="flex-1 text-xs font-semibold">Output</p>- {copyButton}+ <div className="sticky top-0 z-10 bg-muted p-3">+ <div className="flex w-full items-center">+ <p className="flex-1 text-xs font-semibold">Output</p>+ {copyButton}+ </div>+ </div>+ <div className="px-4">+ <pre className="whitespace-break-spaces break-words text-xs">+ {isJson ? outputJson : output}+ </pre>+ {outputToolCalls.length > 0+ ? outputToolCalls.map((toolCall) => (+ <div className="mt-4" key={toolCall.id}>+ <ToolCallCard toolCall={toolCall} />+ </div>+ ))+ : null}</div>- <pre className="whitespace-break-spaces break-words text-xs">- {isJson ? outputJson : output}- </pre>- {outputToolCalls.length > 0- ? outputToolCalls.map((toolCall) => (- <div className="mt-4" key={toolCall.id}>- <ToolCallCard toolCall={toolCall} />- </div>- ))- : null}</div></div>);