Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(BA-543): Add enable_model_folders option to webserver to control Models visibility in WebUI #3503

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/3503.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add `enable_model_folders` option to control the visibility of the Models section and MODEL type on the Data & Storage page in the Backend.AI Web UI.
2 changes: 2 additions & 0 deletions configs/webserver/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ menu_blocklist = "pipeline"
#menu_inactivelist = "statistics"
# Enable/disable the LLM Playground tab in the service page
# enable_LLM_playground = false
# Enable/disable the Models tab and MODEL usage mode in the data & storage page
# enable_model_folders = true

[api]
domain = "default"
Expand Down
1 change: 1 addition & 0 deletions src/ai/backend/web/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
t.Key("edu_appname_prefix", default=""): t.String(allow_blank=True),
t.Key("enable_model_store", default=True): t.ToBool(),
t.Key("enable_extend_login_session", default=False): t.ToBool(),
t.Key("enable_model_folders", default=True): t.ToBool(),
}).allow_extra("*"),
t.Key("resources"): t.Dict({
t.Key("open_port_to_public", default=False): t.ToBool,
Expand Down
1 change: 1 addition & 0 deletions src/ai/backend/web/templates/config.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{% toml_field "defaultImportEnvironment" config["ui"]["default_import_environment"] %}
{% toml_field "siteDescription" config["ui"]["brand"] %}
{% toml_field "enableLLMPlayground" config["ui"]["enable_LLM_playground"] %}
{% toml_field "enableModelFolders" config["ui"]["enable_model_folders"] %}
connectionMode = "SESSION"
{% toml_field "signupSupport" config["service"]["enable_signup"] %}
{% toml_field "allowChangeSigninMode" config["service"]["allow_change_signin_mode"] %}
Expand Down
1 change: 1 addition & 0 deletions src/ai/backend/web/templates/config_ini.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{% toml_field "defaultSessionEnvironment" config["ui"]["default_environment"] %}
{% toml_field "siteDescription" config["ui"]["brand"] %}
{% toml_field "enableLLMPlayground" config["ui"]["enable_LLM_playground"] %}
{% toml_field "enableModelFolders" config["ui"]["enable_model_folders"] %}
connectionMode = "SESSION"

[environments]
Expand Down
Loading