mirror of
https://github.com/vladmandic/automatic
synced 2026-09-15 02:58:44 +02:00
autocomplete dont fetch disabled networks
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -115,6 +115,7 @@ Plus inevitable bug-fixes...
|
||||
- updated: *LoRA, MiniMax*
|
||||
- **Fixes**
|
||||
- api: prompt enhance with vision
|
||||
- autocomplete: skip disabled networks
|
||||
- compile: keep model compiled state
|
||||
- detailer: handling of stop/skip/pause
|
||||
- framepack: correct device assignment, thanks @li-lizhe
|
||||
|
||||
Submodule extensions-builtin/sdnext-modernui updated: fb296c6e1b...e95c40585f
+20
-18
@@ -7,35 +7,37 @@ request_cost = {
|
||||
"/file": 0,
|
||||
"/internal/progress": 0,
|
||||
"/run/predict": 0,
|
||||
"/sdapi/v1/control": 5,
|
||||
"/sdapi/v1/img2img": 5,
|
||||
"/sdapi/v1/txt2img": 5,
|
||||
"/sdapi/v1/video": 5,
|
||||
"/sdapi/v1/browser/thumb": 0,
|
||||
"/sdapi/v1/network/thumb": 0,
|
||||
"/sdapi/v1/txt2img": 5,
|
||||
"/sdapi/v1/img2img": 5,
|
||||
"/sdapi/v1/control": 5,
|
||||
"/sdapi/v1/video": 5,
|
||||
}
|
||||
log_cost = {
|
||||
"/.well-known/appspecific/com.chrome.devtools.json": -1,
|
||||
"/info": -1,
|
||||
"/file": -1,
|
||||
"/token": -1,
|
||||
"/theme.css": -1,
|
||||
"/sdapi/v1/browser/thumb": -1,
|
||||
"/sdapi/v1/network/thumb": -1,
|
||||
"/run/predict": -1,
|
||||
"/queue/join": -1,
|
||||
"/info": -1,
|
||||
"/icon": -1,
|
||||
"/internal/progress": -1,
|
||||
"/sdapi/v1/version": -1,
|
||||
"/sdapi/v1/log": -1,
|
||||
"/sdapi/v1/torch": -1,
|
||||
"/queue/join": -1,
|
||||
"/run/predict": -1,
|
||||
"/theme.css": -1,
|
||||
"/token": -1,
|
||||
"/sdapi/v1/checkpoint": -1,
|
||||
"/sdapi/v1/gpu-smi": -1,
|
||||
"/sdapi/v1/gpu": -1,
|
||||
"/sdapi/v1/loaded-loras": -1,
|
||||
"/sdapi/v1/log": -1,
|
||||
"/sdapi/v1/memory": -1,
|
||||
"/sdapi/v1/platform": -1,
|
||||
"/sdapi/v1/checkpoint": -1,
|
||||
"/sdapi/v1/loaded-loras": -1,
|
||||
"/sdapi/v1/gpu-smi": -1,
|
||||
"/sdapi/v1/status": 60,
|
||||
"/sdapi/v1/progress": 60,
|
||||
"/sdapi/v1/start": -1,
|
||||
"/sdapi/v1/status": 60,
|
||||
"/sdapi/v1/torch": -1,
|
||||
"/sdapi/v1/version": -1,
|
||||
"/sdapi/v1/browser/thumb": -1,
|
||||
"/sdapi/v1/network/thumb": -1,
|
||||
}
|
||||
log_exclude_suffix = ['.css', '.js', '.ico', '.svg']
|
||||
log_exclude_prefix = ['/assets']
|
||||
|
||||
+19
-11
@@ -108,19 +108,27 @@ export const xnEngine: XnEngine = {
|
||||
this.lora = new XnIndex(items);
|
||||
}
|
||||
// Embeddings: {loaded: [...], skipped: [...]}
|
||||
const embData = await this.fetchJson('/embeddings') as Record<string, unknown> | null;
|
||||
if (embData && typeof embData === 'object') {
|
||||
const loaded = Array.isArray(embData.loaded) ? embData.loaded : [];
|
||||
this.embed = new XnIndex(loaded.map((name) => ({ name: String(name) })));
|
||||
if (window.opts.diffusers_enable_embed) {
|
||||
const embData = await this.fetchJson('/embeddings') as Record<string, unknown> | null;
|
||||
if (embData && typeof embData === 'object') {
|
||||
const loaded = Array.isArray(embData.loaded) ? embData.loaded : [];
|
||||
this.embed = new XnIndex(loaded.map((name) => ({ name: String(name) })));
|
||||
}
|
||||
} else {
|
||||
this.embed = new XnIndex([]);
|
||||
}
|
||||
// Wildcards: [{name}, ...]
|
||||
const wcData = await this.fetchJson('/wildcards');
|
||||
if (Array.isArray(wcData)) {
|
||||
this.wildcard = new XnIndex(
|
||||
wcData
|
||||
.filter((w) => typeof w === 'object' && w && 'name' in w && typeof w.name === 'string')
|
||||
.map((w) => ({ name: w.name })),
|
||||
);
|
||||
if (window.opts.wildcards_enabled) {
|
||||
const wcData = await this.fetchJson('/wildcards');
|
||||
if (Array.isArray(wcData)) {
|
||||
this.wildcard = new XnIndex(
|
||||
wcData
|
||||
.filter((w) => typeof w === 'object' && w && 'name' in w && typeof w.name === 'string')
|
||||
.map((w) => ({ name: w.name })),
|
||||
);
|
||||
}
|
||||
} else {
|
||||
this.wildcard = new XnIndex([]);
|
||||
}
|
||||
log('autoComplete', {
|
||||
xnLoaded: true,
|
||||
|
||||
Vendored
+17
-9
@@ -14759,16 +14759,24 @@ var xnEngine = {
|
||||
}
|
||||
this.lora = new XnIndex(items);
|
||||
}
|
||||
const embData = await this.fetchJson("/embeddings");
|
||||
if (embData && typeof embData === "object") {
|
||||
const loaded = Array.isArray(embData.loaded) ? embData.loaded : [];
|
||||
this.embed = new XnIndex(loaded.map((name) => ({ name: String(name) })));
|
||||
if (window.opts.diffusers_enable_embed) {
|
||||
const embData = await this.fetchJson("/embeddings");
|
||||
if (embData && typeof embData === "object") {
|
||||
const loaded = Array.isArray(embData.loaded) ? embData.loaded : [];
|
||||
this.embed = new XnIndex(loaded.map((name) => ({ name: String(name) })));
|
||||
}
|
||||
} else {
|
||||
this.embed = new XnIndex([]);
|
||||
}
|
||||
const wcData = await this.fetchJson("/wildcards");
|
||||
if (Array.isArray(wcData)) {
|
||||
this.wildcard = new XnIndex(
|
||||
wcData.filter((w) => typeof w === "object" && w && "name" in w && typeof w.name === "string").map((w) => ({ name: w.name }))
|
||||
);
|
||||
if (window.opts.wildcards_enabled) {
|
||||
const wcData = await this.fetchJson("/wildcards");
|
||||
if (Array.isArray(wcData)) {
|
||||
this.wildcard = new XnIndex(
|
||||
wcData.filter((w) => typeof w === "object" && w && "name" in w && typeof w.name === "string").map((w) => ({ name: w.name }))
|
||||
);
|
||||
}
|
||||
} else {
|
||||
this.wildcard = new XnIndex([]);
|
||||
}
|
||||
log("autoComplete", {
|
||||
xnLoaded: true,
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user