Skip to content

Commit

Permalink
update category
Browse files Browse the repository at this point in the history
  • Loading branch information
isamu committed Jun 17, 2024
1 parent 0611143 commit f5a30f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"projects": {
"default": "fir-vue-startup-kit"
"default": "graphai-litegraph"
}
}
25 changes: 14 additions & 11 deletions src/views/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,20 @@ const initLiteGraph = () => {
});

Object.values(vanillaAgents).map((agent) => {
agent.category.forEach((category) => {
LiteGraph.registerNodeType(
[category, agent.name].join("/"),
createAgentNode({
name: agent.name,
category: category,
inputs: [["In", "string"]],
outputs: [["Output", "string"]],
}),
);
});
if (agent.category) {
agent.category.forEach((category) => {
const name = agent.name.replace(/Agent$/, "")
LiteGraph.registerNodeType(
[category, name].join("/"),
createAgentNode({
name: name,
category: category,
inputs: [["In", "string"]],
outputs: [["Output", "string"]],
}),
);
});
}
});
};

Expand Down

0 comments on commit f5a30f9

Please sign in to comment.