refactor(openwebui): add dynaminc config option (#3492)

* refactor(openwebui): add dynaminc config option

* tests: make tests work
This commit is contained in:
Stavros 2024-05-14 19:06:10 +03:00 committed by GitHub
parent 85072ac65a
commit ee368ab3f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 21 additions and 3 deletions

View File

@ -23,6 +23,7 @@ interface AppConfig {
available: boolean; available: boolean;
form_fields?: FormField[]; form_fields?: FormField[];
supported_architectures: string[]; supported_architectures: string[];
dynamic_config: boolean;
} }
const networkExceptions = [ const networkExceptions = [
@ -260,7 +261,7 @@ describe("App configs", () => {
expect(dockerCompose.services[app.id].networks).toBeDefined(); expect(dockerCompose.services[app.id].networks).toBeDefined();
expect(dockerCompose.services[app.id].networks).toContain( expect(dockerCompose.services[app.id].networks).toContain(
"tipi_main_network" "tipi_main_network",
); );
} }
}); });

View File

@ -5,7 +5,7 @@
"exposable": true, "exposable": true,
"port": 8536, "port": 8536,
"id": "open-webui", "id": "open-webui",
"tipi_version": 1, "tipi_version": 2,
"version": "git-90503be", "version": "git-90503be",
"categories": ["ai"], "categories": ["ai"],
"description": "Open WebUI is an extensible, feature-rich, and user-friendly self-hosted WebUI designed to operate entirely offline.", "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" "env_variable": "OPENWEBUI_OPENAI_KEY"
} }
], ],
"dynamic_config": true,
"supported_architectures": ["arm64", "amd64"] "supported_architectures": ["arm64", "amd64"]
} }

View File

@ -132,7 +132,23 @@
"required": ["type", "label", "env_variable"] "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"
]
} }