Added multi-key support

This commit is contained in:
2026-01-17 16:12:41 -05:00
parent 3eb9863c3e
commit 3bb350f3cf
6 changed files with 244 additions and 25 deletions

View File

@@ -30,11 +30,8 @@
<button id="resetApiBtn" class="ghost" type="button">Reset to OpenAI</button>
</div>
<div class="field">
<label for="apiKey">API Key</label>
<div class="inline">
<input id="apiKey" type="password" autocomplete="off" placeholder="sk-..." />
<button id="toggleKey" class="ghost" type="button">Show</button>
</div>
<label for="activeApiKeySelect">Active key</label>
<select id="activeApiKeySelect"></select>
</div>
<div class="field">
<label for="apiBaseUrl">API Base URL</label>
@@ -59,6 +56,23 @@
</div>
</details>
<details class="panel">
<summary class="panel-summary">
<span class="panel-caret" aria-hidden="true">
<span class="caret-closed"></span>
<span class="caret-open"></span>
</span>
<h2>API Keys</h2>
</summary>
<div class="panel-body">
<div class="row">
<div></div>
<button id="addApiKeyBtn" class="ghost" type="button">Add Key</button>
</div>
<div id="apiKeys" class="api-keys"></div>
</div>
</details>
<details class="panel">
<summary class="panel-summary">
<span class="panel-caret" aria-hidden="true">