Skip to content

Commit

Permalink
put back array as it break older apps
Browse files Browse the repository at this point in the history
  • Loading branch information
aakrem committed Apr 2, 2024
1 parent f5c50d6 commit cff4cb2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions agenta-web/src/components/Playground/Views/ParametersCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,21 @@ export const ModelParameters: React.FC<ModelParametersProps> = ({
className={classes.colSlider}
/>
)}
{param.type === "array" && (
<Select
value={param.default}
onChange={(value) =>
handleParamChange(param.name, value)
}
className={classes.select}
>
{param.enum?.map((value: string, index: number) => (
<Select.Option key={index} value={value}>
{value}
</Select.Option>
))}
</Select>
)}
{param.type === "grouped_choice" && (
<GroupedSelect
choices={param.choices || {}}
Expand Down

0 comments on commit cff4cb2

Please sign in to comment.