Skip to content

Commit

Permalink
remove cost, latency and usage if res is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
bekossy committed Jan 4, 2024
1 parent abf1ec1 commit fdf797c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agenta-web/src/components/Playground/Views/TestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const BoxComponent: React.FC<BoxComponentProps> = ({
imageSize="large"
/>
</Row>
{additionalData && (
{additionalData.cost || additionalData.latency ? (
<Space>
<p>
Tokens:{" "}
Expand All @@ -187,6 +187,8 @@ const BoxComponent: React.FC<BoxComponentProps> = ({
: "0ms"}
</p>
</Space>
) : (
""
)}
<Row className={classes.row2} style={{marginBottom: isChatVariant ? 12 : 0}}>
<Col span={24} className={classes.row2Col} id={variant.variantId}>
Expand Down

0 comments on commit fdf797c

Please sign in to comment.