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
0a18f0f1
Commit
0a18f0f1
authored
May 06, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: escape gguf whisper-server prefill action
parent
5284815f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
models.html
codai/admin/templates/models.html
+1
-1
test_whisper_server_local_models.py
tests/test_whisper_server_local_models.py
+2
-1
No files found.
codai/admin/templates/models.html
View file @
0a18f0f1
...
@@ -1126,7 +1126,7 @@ async function loadCachedModels(){
...
@@ -1126,7 +1126,7 @@ async function loadCachedModels(){
${
f
.
in_config
?(
loaded
${
f
.
in_config
?(
loaded
?
`<button class="btn btn-ghost btn-sm" onclick="unloadModel(
${
idx
}
)">Unload</button>`
?
`<button class="btn btn-ghost btn-sm" onclick="unloadModel(
${
idx
}
)">Unload</button>`
:
`<button class="btn btn-primary btn-sm" onclick="loadModel(
${
idx
}
)">Load now</button>`
):
''
}
:
`<button class="btn btn-primary btn-sm" onclick="loadModel(
${
idx
}
)">Load now</button>`
):
''
}
<button class="btn btn-secondary btn-sm" onclick=
"prefillWhisperServerFromGguf('
${
esc
(
f
.
path
)}
')"
>Use with whisper-server</button>
<button class="btn btn-secondary btn-sm" onclick=
'prefillWhisperServerFromGguf(
${
JSON
.
stringify
(
f
.
path
)}
)'
>Use with whisper-server</button>
<button class="btn btn-secondary btn-sm" onclick="openCfgModal(
${
idx
}
)">
${
f
.
in_config
?
'Configure'
:
'Add to CoderAI'
}
</button>
<button class="btn btn-secondary btn-sm" onclick="openCfgModal(
${
idx
}
)">
${
f
.
in_config
?
'Configure'
:
'Add to CoderAI'
}
</button>
${
f
.
in_config
?
`<button class="btn btn-ghost btn-sm" onclick="disableModel(
${
idx
}
)">Remove</button>`
:
''
}
${
f
.
in_config
?
`<button class="btn btn-ghost btn-sm" onclick="disableModel(
${
idx
}
)">Remove</button>`
:
''
}
<button class="btn btn-danger btn-sm" onclick="deleteModelConfirm(
${
idx
}
)">Delete</button>
<button class="btn btn-danger btn-sm" onclick="deleteModelConfirm(
${
idx
}
)">Delete</button>
...
...
tests/test_whisper_server_local_models.py
View file @
0a18f0f1
...
@@ -440,7 +440,8 @@ def test_models_template_adds_use_with_whisper_server_gguf_action():
...
@@ -440,7 +440,8 @@ def test_models_template_adds_use_with_whisper_server_gguf_action():
template
=
Path
(
"codai/admin/templates/models.html"
)
.
read_text
()
template
=
Path
(
"codai/admin/templates/models.html"
)
.
read_text
()
assert
"Use with whisper-server"
in
template
assert
"Use with whisper-server"
in
template
assert
"onclick=
\"
prefillWhisperServerFromGguf('${esc(f.path)}')
\"
"
in
template
assert
"onclick='prefillWhisperServerFromGguf(${JSON.stringify(f.path)})'"
in
template
assert
"prefillWhisperServerFromGguf('${esc(f.path)}')"
not
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