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-722): set webserver config for showing kernel list in session detail panel #3671

Merged
merged 1 commit into from
Feb 18, 2025
Merged
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
3 changes: 3 additions & 0 deletions changes/3671.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Add a `show_kernel_list` config to webserver to show/hide kernel list in the session detail panel.

Add configs not specified in sample.toml
8 changes: 7 additions & 1 deletion configs/webserver/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,14 @@ force_2FA = false
directory_based_usage = false
# If true, display the custom allocation on the session launcher.
# allow_custom_resource_allocation = true
# If false, directory size in folder explorer will show `-`. default value is set to true.
is_directory_size_visible = true
# edu_appname_prefix = ""
# If false, the model store will be disabled.
# enable_model_store = True
# enable_extend_login_session = False
# If false, directory size in folder explorer will show `-`. default value is set to true.
# If true, the kernel list will be shown in the session detail panel.
show_kernel_list = false

[resources]
# Display "Open port to public" checkbox in the app launcher.
Expand Down
2 changes: 2 additions & 0 deletions src/ai/backend/web/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
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("is_directory_size_visible", default=True): t.ToBool(),
t.Key("show_kernel_list", default=False): 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 @@ -33,6 +33,7 @@ connectionMode = "SESSION"
{% toml_field "eduAppNamePrefix" config["service"]["edu_appname_prefix"] %}
{% toml_field "enableModelStore" config["service"]["enable_model_store"] %}
{% toml_field "enableExtendLoginSession" config["service"]["enable_extend_login_session"] %}
{% toml_field "showKernelList" config["service"]["show_kernel_list"] %}

[resources]
{% toml_field "openPortToPublic" config["resources"]["open_port_to_public"] %}
Expand Down
Loading