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
6b937272
Commit
6b937272
authored
May 06, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: constrain whisper-server path display
parent
591a2926
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
models.html
codai/admin/templates/models.html
+1
-1
test_whisper_server_local_models.py
tests/test_whisper_server_local_models.py
+9
-0
No files found.
codai/admin/templates/models.html
View file @
6b937272
...
...
@@ -997,7 +997,7 @@ function _renderWhisperServerRows(models){
return
`<tr style="border-top:1px solid var(--border)">
<td style="padding:.4rem .25rem;font-family:monospace;font-size:12px">
${
esc
(
m
.
id
)}
</td>
<td style="padding:.4rem .25rem"><span class="badge badge-ok">
${
esc
(
m
.
backend
||
'whisper-server'
)}
</span></td>
<td style="padding:.4rem .25rem;font-size:11px;color:var(--text-2)
">
${
esc
(
m
.
model_path
||
'—'
)}
</td>
<td style="padding:.4rem .25rem;font-size:11px;color:var(--text-2)
;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" title="
${
esc
(
m
.
model_path
||
"—"
)}
">
${
esc
(
m
.
model_path
||
"—"
)}
</td>
<td style="padding:.4rem .25rem;font-size:11px;color:var(--text-2)">
${
m
.
port
??
'—'
}
/ GPU ${m.gpu_device
??
0}</
td
>
<
td
style
=
"padding:.4rem .25rem;font-size:11px;color:var(--text-2)"
>
$
{
esc
(
m
.
load_mode
||
'on-request'
)}
<
/td
>
<
td
style
=
"padding:.4rem .25rem;text-align:center"
>
$
{
loaded
?
'<span class="badge badge-ok">loaded</span>'
:
'<span class="muted small">idle</span>'
}
<
/td
>
...
...
tests/test_whisper_server_local_models.py
View file @
6b937272
...
...
@@ -664,6 +664,15 @@ def test_models_template_adds_use_with_whisper_server_gguf_action():
assert
"prefillWhisperServerFromGguf('${esc(f.path)}')"
not
in
template
def
test_models_template_truncates_configured_whisper_server_model_paths
():
template
=
Path
(
"codai/admin/templates/models.html"
)
.
read_text
()
assert
'<th style="text-align:left;padding:.3rem .25rem;font-weight:700">Model path</th>'
in
template
assert
'max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap'
in
template
assert
'title="${esc(m.model_path ||
\"
—
\"
)}"'
in
template
assert
'>${esc(m.model_path ||
\"
—
\"
)}</td>'
in
template
def
test_settings_template_no_longer_contains_whisper_server_section
():
template
=
Path
(
"codai/admin/templates/settings.html"
)
.
read_text
()
...
...
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