Skip to content

Commit

Permalink
[editor] Prompt Output Bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Holinshead committed Dec 27, 2023
1 parent 9d8a43d commit fa658d9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Flex, Card, Text, createStyles } from "@mantine/core";
import { PromptInput as AIConfigPromptInput } from "aiconfig";
import { memo, useCallback } from "react";
import { ParametersArray } from "../ParametersRenderer";
import PromptOutputBar from "./PromptOutputBar";

type Props = {
index: number;
Expand Down Expand Up @@ -88,6 +89,7 @@ export default memo(function PromptContainer({
schema={inputSchema}
onChangeInput={onChangeInput}
/>
<PromptOutputBar />
{prompt.outputs && <PromptOutputsRenderer outputs={prompt.outputs} />}
</Flex>
</Card>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Divider, Flex, Text } from "@mantine/core";
import { memo } from "react";

type Props = {};

export default memo(function PromptOutputBar(_props: Props) {
return (
<Flex direction="column" mt="0.5em">
<Divider size="sm" mt="0.5em" mb="0.5em" />
<Text color="dimmed">Output</Text>
{/* TODO: Add output metrics */}
</Flex>
);
});

0 comments on commit fa658d9

Please sign in to comment.