mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 23:02:25 +00:00
fix: comfyui cfg setting
This commit is contained in:
parent
9ddb16345f
commit
faa054d4b4
@ -117,7 +117,7 @@ class OpenAIConfigForm(BaseModel):
|
|||||||
class Automatic1111ConfigForm(BaseModel):
|
class Automatic1111ConfigForm(BaseModel):
|
||||||
AUTOMATIC1111_BASE_URL: str
|
AUTOMATIC1111_BASE_URL: str
|
||||||
AUTOMATIC1111_API_AUTH: str
|
AUTOMATIC1111_API_AUTH: str
|
||||||
AUTOMATIC1111_CFG_SCALE: Optional[str]
|
AUTOMATIC1111_CFG_SCALE: Optional[str | float | int]
|
||||||
AUTOMATIC1111_SAMPLER: Optional[str]
|
AUTOMATIC1111_SAMPLER: Optional[str]
|
||||||
AUTOMATIC1111_SCHEDULER: Optional[str]
|
AUTOMATIC1111_SCHEDULER: Optional[str]
|
||||||
|
|
||||||
|
@ -105,10 +105,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const updateConfigHandler = async () => {
|
const updateConfigHandler = async () => {
|
||||||
const res = await updateConfig(localStorage.token, config).catch((error) => {
|
const res = await updateConfig(localStorage.token, config)
|
||||||
toast.error(error);
|
.catch((error) => {
|
||||||
return null;
|
toast.error(error);
|
||||||
});
|
return null;
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
toast.error(error);
|
||||||
|
return null;
|
||||||
|
});
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
config = res;
|
config = res;
|
||||||
|
Loading…
Reference in New Issue
Block a user