Add site OpenAI key and model picker

This commit is contained in:
rajchales-monito
2026-07-29 21:17:12 +02:00
parent 46d18c69eb
commit 227fcc2084
4 changed files with 157 additions and 13 deletions
+10 -1
View File
@@ -177,7 +177,16 @@
<option value="de">Nemcina</option>
</select>
</label>
<label>OpenAI model <input id="translationModel" placeholder="gpt-5.6-luna"></label>
<label>OpenAI API key
<input id="openaiApiKey" type="password" autocomplete="off" placeholder="sk-...">
<small id="openaiApiKeyStatus">Klic neni ulozeny.</small>
</label>
<label>OpenAI model
<span class="model-row">
<select id="translationModel"></select>
<button id="refreshAiModels" type="button">Obnovit</button>
</span>
</label>
</fieldset>
</div>
</section>