From c7eabbf376365387d0b2738b285533ec316b82ba Mon Sep 17 00:00:00 2001 From: Kyle Corbitt Date: Mon, 26 Jun 2023 22:26:53 -0700 Subject: [PATCH] remove unnecessary quotes on cell output --- src/components/OutputsTable/OutputCell.tsx | 4 ++-- src/pages/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/OutputsTable/OutputCell.tsx b/src/components/OutputsTable/OutputCell.tsx index f55a0f5..f45d915 100644 --- a/src/components/OutputsTable/OutputCell.tsx +++ b/src/components/OutputsTable/OutputCell.tsx @@ -26,7 +26,7 @@ export default function OutputCell({ let disabledReason: string | null = null; - if (!templateHasVariables) disabledReason = "Add a scenario variable to see output"; + if (!templateHasVariables) disabledReason = "Add a value to the scenario variables to see output"; if (variant.config === null || Object.keys(variant.config).length === 0) disabledReason = "Save your prompt variant to see output"; @@ -59,6 +59,6 @@ export default function OutputCell({ return ( // @ts-expect-error TODO proper typing and error checks - {JSON.stringify(output.data.output.choices[0].message.content, null, 2)} + {output.data.output.choices[0].message.content} ); } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 47ac44f..8b8e0a4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -3,7 +3,7 @@ import AppShell from "~/components/nav/AppShell"; export default function Home() { return ( - +
Select an experiment from the sidebar to get started!