mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Allow deleting onnx models in model manager ui
This commit is contained in:
parent
024f92f9a9
commit
4ebde013ea
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
import{A as m,fS as Ze,z as y,a4 as Xa,fT as Ya,af as va,aj as d,fU as b,fV as t,fW as Ka,fX as h,fY as ua,fZ as Za,f_ as Ja,aI as Qa,f$ as et,ad as rt,g0 as at}from"./index-190cc92f.js";import{s as fa,n as o,t as tt,o as ha,p as ot,q as ma,v as ga,w as ya,x as it,y as Sa,z as pa,A as xr,B as nt,D as lt,E as st,F as xa,G as $a,H as ka,J as dt,K as _a,L as ct,M as bt,N as vt,O as ut,Q as wa,R as ft,S as ht,T as mt,U as gt,V as yt,W as St,e as pt,X as xt}from"./MantineProvider-26d2feb2.js";var za=String.raw,Ca=za`
|
||||
import{A as m,fS as Ze,z as y,a4 as Xa,fT as Ya,af as va,aj as d,fU as b,fV as t,fW as Ka,fX as h,fY as ua,fZ as Za,f_ as Ja,aI as Qa,f$ as et,ad as rt,g0 as at}from"./index-91eecded.js";import{s as fa,n as o,t as tt,o as ha,p as ot,q as ma,v as ga,w as ya,x as it,y as Sa,z as pa,A as xr,B as nt,D as lt,E as st,F as xa,G as $a,H as ka,J as dt,K as _a,L as ct,M as bt,N as vt,O as ut,Q as wa,R as ft,S as ht,T as mt,U as gt,V as yt,W as St,e as pt,X as xt}from"./MantineProvider-149dbf3d.js";var za=String.raw,Ca=za`
|
||||
:root,
|
||||
:host {
|
||||
--chakra-vh: 100vh;
|
File diff suppressed because one or more lines are too long
2
invokeai/frontend/web/dist/index.html
vendored
2
invokeai/frontend/web/dist/index.html
vendored
@ -12,7 +12,7 @@
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="./assets/index-190cc92f.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index-91eecded.js"></script>
|
||||
</head>
|
||||
|
||||
<body dir="ltr">
|
||||
|
@ -14,6 +14,7 @@ import {
|
||||
MergeModelConfig,
|
||||
TextualInversionModelConfig,
|
||||
VaeModelConfig,
|
||||
ModelType,
|
||||
} from 'services/api/types';
|
||||
|
||||
import queryString from 'query-string';
|
||||
@ -62,6 +63,7 @@ type UpdateMainModelResponse =
|
||||
type DeleteMainModelArg = {
|
||||
base_model: BaseModelType;
|
||||
model_name: string;
|
||||
model_type: ModelType;
|
||||
};
|
||||
|
||||
type DeleteMainModelResponse = void;
|
||||
@ -287,9 +289,9 @@ export const modelsApi = api.injectEndpoints({
|
||||
DeleteMainModelResponse,
|
||||
DeleteMainModelArg
|
||||
>({
|
||||
query: ({ base_model, model_name }) => {
|
||||
query: ({ base_model, model_name, model_type }) => {
|
||||
return {
|
||||
url: `models/${base_model}/main/${model_name}`,
|
||||
url: `models/${base_model}/${model_type}/${model_name}`,
|
||||
method: 'DELETE',
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user