Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add llm call to dataset #235

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading