1
0

Refactor commit message generation options in settings.html

This commit is contained in:
2025-05-25 01:20:53 +02:00
parent 551ebee2cb
commit a832d83674

View File

@@ -236,12 +236,19 @@
if (!qwen.length) { if (!qwen.length) {
// keine qwen2.5-coder → Pull-Buttons // keine qwen2.5-coder → Pull-Buttons
container.innerHTML = ` container.innerHTML = `
<button id="pullCommitModelBtn" style="margin-bottom:8px;"> <div class="row">
ollama pull qwen2.5-coder:7b <span>Model for commit message generation:</span>
</button><br> <select id="commitModelSelect">
<button id="pullReadmeModelBtn"> ${makeOpts(qwen, currentCommit)}
ollama pull qwen2.5-coder:32b </select>
</button>`; </div>
<div class="row">
<span>Model for README generation:</span>
<select id="readmeModelSelect">
${makeOpts(qwen, currentReadme)}
</select>
</div>
`;
document.getElementById('pullCommitModelBtn').onclick = async () => { document.getElementById('pullCommitModelBtn').onclick = async () => {
await window.electronAPI.ollamaPull('qwen2.5-coder:7b'); await window.electronAPI.ollamaPull('qwen2.5-coder:7b');
location.reload(); location.reload();