Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Apr 18, 2024
1 parent 33d817a commit b0aa731
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/frontend/components/blocks/RunInputOutput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ const isChatMessages = (obj) => {
typeof obj.content === "string"
}

// This is the component that renders the input and output of a run
// It also allow redirecting to the playground or sharing the run

const ParamItem = ({
name,
value,
Expand All @@ -53,7 +50,7 @@ const ParamItem = ({
</Badge>
) : Array.isArray(value) ? (
value.map((v, i) => (
<Badge key={i} variant="outline" tt="none">
<Badge key={i} variant="outline" tt="none" mr="xs">
{v}
</Badge>
))
Expand Down Expand Up @@ -208,6 +205,7 @@ export default function RunInputOutput({
<Card withBorder radius="md">
<Group justify="space-between" align="start">
<Stack gap="xs">
a
<ParamItem
name="Model"
value={run.name}
Expand All @@ -217,7 +215,6 @@ export default function RunInputOutput({
</Badge>
)}
/>

{PARAMS.map(
({ key, name, render }) =>
typeof run.params?.[key] !== "undefined" && (
Expand All @@ -230,11 +227,9 @@ export default function RunInputOutput({
/>
),
)}

{run.tags?.length > 0 && (
<ParamItem name="Tags" value={run.tags} />
)}

{Object.entries(run.metadata || {}).map(([key, value]) => {
if (!value || value.hasOwnProperty("toString")) {
return null
Expand Down

0 comments on commit b0aa731

Please sign in to comment.