Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
coderai
Commits
4b3c6e93
Commit
4b3c6e93
authored
May 06, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: cover whisper-server source toggle behavior
parent
ac28d5c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
models.html
codai/admin/templates/models.html
+2
-1
test_whisper_server_local_models.py
tests/test_whisper_server_local_models.py
+15
-1
No files found.
codai/admin/templates/models.html
View file @
4b3c6e93
...
...
@@ -1121,7 +1121,8 @@ async function loadCachedModels(){
}
function
toggleWhisperModelSource
(){
const
source
=
document
.
getElementById
(
'ws-model-source'
)?.
value
||
'cached-gguf'
;
const
sourceSelect
=
document
.
getElementById
(
'ws-model-source'
);
const
source
=
sourceSelect
?
sourceSelect
.
value
:
'cached-gguf'
;
const
ggufSelect
=
document
.
getElementById
(
'ws-gguf-select'
);
const
modelPath
=
document
.
getElementById
(
'ws-model-path'
);
if
(
!
ggufSelect
||
!
modelPath
)
return
;
...
...
tests/test_whisper_server_local_models.py
View file @
4b3c6e93
...
...
@@ -411,7 +411,21 @@ def test_models_template_preserves_whisper_server_manual_path_controls():
template
=
Path
(
"codai/admin/templates/models.html"
)
.
read_text
()
assert
"ws-model-path"
in
template
assert
"Manual path"
in
template
assert
'placeholder="Manual path: /models/ggml-base.bin"'
in
template
assert
"modelPath.style.display = useCached ? 'none' : '';"
in
template
def
test_models_template_defines_whisper_server_source_toggle_behavior
():
template
=
Path
(
"codai/admin/templates/models.html"
)
.
read_text
()
assert
"function toggleWhisperModelSource()"
in
template
assert
"const sourceSelect = document.getElementById('ws-model-source');"
in
template
assert
"const source = sourceSelect ? sourceSelect.value : 'cached-gguf';"
in
template
assert
"const ggufSelect = document.getElementById('ws-gguf-select');"
in
template
assert
"const modelPath = document.getElementById('ws-model-path');"
in
template
assert
"const useCached = source === 'cached-gguf';"
in
template
assert
"ggufSelect.style.display = useCached ? '' : 'none';"
in
template
assert
"modelPath.style.display = useCached ? 'none' : '';"
in
template
def
test_settings_template_no_longer_contains_whisper_server_section
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment