Updated a1111 pnginfo importer, supports:

- model name, other basic settings
 - clip skip
 - hr upscale
 - loras
 - embeddings
This commit is contained in:
pythongosssss
2023-03-12 21:36:42 +00:00
parent 6d6758e9e4
commit 85989c74e5
4 changed files with 285 additions and 3 deletions

View File

@@ -106,6 +106,15 @@ class ComfyApi extends EventTarget {
return await resp.json();
}
/**
* Gets a list of embedding names
* @returns An array of script urls to import
*/
async getEmbeddings() {
const resp = await fetch("/embeddings", { cache: "no-store" });
return await resp.json();
}
/**
* Loads node object definitions for the graph
* @returns The node definitions