mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Enhance module retrieval by categorizing AI and transcription modules
This commit is contained in:
@@ -110,9 +110,18 @@ electron.ipcMain.handle('get-module-names', async () => {
|
||||
"ai_modules":[],
|
||||
"transcription_modules":[]
|
||||
}
|
||||
});
|
||||
mapFunctions.forEach(e => {
|
||||
switch(e.type){
|
||||
case "llm":
|
||||
module_array.ai_modules.push({"name": e.name, "displayname": e.displayname})
|
||||
break;
|
||||
case "transcription":
|
||||
module_array.transcription_modules.push({"name": e.name, "displayname": e.displayname})
|
||||
break;
|
||||
}
|
||||
})
|
||||
// console.log(module_array);
|
||||
return module_array;
|
||||
return module_array
|
||||
});
|
||||
|
||||
// electron.ipcMain.on("get_modules", async (event, args) => {
|
||||
|
||||
Reference in New Issue
Block a user