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
a7f4abdb
Commit
a7f4abdb
authored
May 06, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: clamp whisper-server paths to two lines
parent
182597be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
models.html
codai/admin/templates/models.html
+1
-1
test_whisper_server_local_models.py
tests/test_whisper_server_local_models.py
+2
-2
No files found.
codai/admin/templates/models.html
View file @
a7f4abdb
...
@@ -997,7 +997,7 @@ function _renderWhisperServerRows(models){
...
@@ -997,7 +997,7 @@ function _renderWhisperServerRows(models){
return
`<tr style="border-top:1px solid var(--border)">
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;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"><span class="badge badge-ok">
${
esc
(
m
.
backend
||
'whisper-server'
)}
</span></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);max-width:
160px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;max-height:2.5em
" 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)">
${
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;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
>
<
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 @
a7f4abdb
...
@@ -736,9 +736,9 @@ def test_models_template_truncates_configured_whisper_server_model_paths():
...
@@ -736,9 +736,9 @@ def test_models_template_truncates_configured_whisper_server_model_paths():
template
=
Path
(
"codai/admin/templates/models.html"
)
.
read_text
()
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
'<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
'max-width:
160px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;max-height:2.5em
'
in
template
assert
'title="${esc(m.model_path ||
\"
—
\"
)}"'
in
template
assert
'title="${esc(m.model_path ||
\"
—
\"
)}"'
in
template
assert
'>${esc(m.model_path ||
\"
—
\
"
)}</td>'
in
template
assert
'>${esc(m.model_path ||
"—
")}</td>'
in
template
def
test_settings_template_no_longer_contains_whisper_server_section
():
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