mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix blockType utils
This commit is contained in:
@@ -431,8 +431,7 @@ export const convertLibraryAgentIntoBlock = (agent: LibraryAgent) => {
|
||||
|
||||
// Need to change it once, we got provider blocks
|
||||
export const getBlockType = (item: any) => {
|
||||
console.log(item);
|
||||
if (item.inputSchema.properties?.model?.title === "LLM Model") {
|
||||
if (item?.inputSchema?.properties?.model?.title === "LLM Model") {
|
||||
return "ai_agent";
|
||||
}
|
||||
if (item.id && item.name && item.inputSchema && item.outputSchema) {
|
||||
|
||||
Reference in New Issue
Block a user