Skip to content

Commit c22c4b5

Browse files
committed
Output schema id from data
1 parent e852cf9 commit c22c4b5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

llmstack/client/src/components/apps/AppEditor.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export function AppEditor(props) {
3636
label: "1. Input",
3737
items: schema,
3838
pillPrefix: "[1] Input / ",
39+
id: "_inputs1",
3940
},
4041
...processors.map((p, index) => {
4142
return {
@@ -44,6 +45,7 @@ export function AppEditor(props) {
4445
p.api_backend?.name
4546
} / `,
4647
items: p.api_backend?.output_schema,
48+
id: p.id || `_inputs${index + 1}`,
4749
};
4850
}),
4951
]);

llmstack/client/src/components/apps/TextFieldWithVars.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export function TextFieldWithVars(props) {
239239
.map((schema, index) =>
240240
generateTreeItemsFromSchema(
241241
schema.items,
242-
`_inputs${index}`,
242+
schema.id,
243243
(e, k, widget) => {
244244
let templateString = `{{${k}}}`;
245245
if (widget === "output_image") {

0 commit comments

Comments
 (0)