refactor(openwebui): add dynaminc config option (#3492)
* refactor(openwebui): add dynaminc config option * tests: make tests work
This commit is contained in:
parent
85072ac65a
commit
ee368ab3f4
|
@ -23,6 +23,7 @@ interface AppConfig {
|
|||
available: boolean;
|
||||
form_fields?: FormField[];
|
||||
supported_architectures: string[];
|
||||
dynamic_config: boolean;
|
||||
}
|
||||
|
||||
const networkExceptions = [
|
||||
|
@ -260,7 +261,7 @@ describe("App configs", () => {
|
|||
|
||||
expect(dockerCompose.services[app.id].networks).toBeDefined();
|
||||
expect(dockerCompose.services[app.id].networks).toContain(
|
||||
"tipi_main_network"
|
||||
"tipi_main_network",
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"exposable": true,
|
||||
"port": 8536,
|
||||
"id": "open-webui",
|
||||
"tipi_version": 1,
|
||||
"tipi_version": 2,
|
||||
"version": "git-90503be",
|
||||
"categories": ["ai"],
|
||||
"description": "Open WebUI is an extensible, feature-rich, and user-friendly self-hosted WebUI designed to operate entirely offline.",
|
||||
|
@ -28,5 +28,6 @@
|
|||
"env_variable": "OPENWEBUI_OPENAI_KEY"
|
||||
}
|
||||
],
|
||||
"dynamic_config": true,
|
||||
"supported_architectures": ["arm64", "amd64"]
|
||||
}
|
||||
|
|
|
@ -132,7 +132,23 @@
|
|||
"required": ["type", "label", "env_variable"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"dynamic_config": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": ["name", "available", "port", "id", "tipi_version", "version", "categories", "description", "short_desc", "author", "source", "form_fields"]
|
||||
"required": [
|
||||
"name",
|
||||
"available",
|
||||
"port",
|
||||
"id",
|
||||
"tipi_version",
|
||||
"version",
|
||||
"categories",
|
||||
"description",
|
||||
"short_desc",
|
||||
"author",
|
||||
"source",
|
||||
"form_fields"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user