remove unnecessary quotes on cell output
This commit is contained in:
@@ -26,7 +26,7 @@ export default function OutputCell({
|
|||||||
|
|
||||||
let disabledReason: string | null = null;
|
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)
|
if (variant.config === null || Object.keys(variant.config).length === 0)
|
||||||
disabledReason = "Save your prompt variant to see output";
|
disabledReason = "Save your prompt variant to see output";
|
||||||
@@ -59,6 +59,6 @@ export default function OutputCell({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
// @ts-expect-error TODO proper typing and error checks
|
// @ts-expect-error TODO proper typing and error checks
|
||||||
<CellShell>{JSON.stringify(output.data.output.choices[0].message.content, null, 2)}</CellShell>
|
<CellShell>{output.data.output.choices[0].message.content}</CellShell>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import AppShell from "~/components/nav/AppShell";
|
|||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<AppShell title="Experiment not found">
|
<AppShell>
|
||||||
<Center h="100vh">
|
<Center h="100vh">
|
||||||
<div>Select an experiment from the sidebar to get started!</div>
|
<div>Select an experiment from the sidebar to get started!</div>
|
||||||
</Center>
|
</Center>
|
||||||
|
|||||||
Reference in New Issue
Block a user