Eric Xu commited on
Show base URL and model fields by default — don't lock to any provider
Browse files- web/static/index.html +9 -14
web/static/index.html
CHANGED
|
@@ -317,24 +317,19 @@
|
|
| 317 |
<div class="step-num" style="border-color:var(--yellow);color:var(--yellow)">!</div>
|
| 318 |
<div class="step-title">Connect your LLM</div>
|
| 319 |
</div>
|
| 320 |
-
<p class="step-desc">SGO
|
| 321 |
<div class="field">
|
| 322 |
<label>API key</label>
|
| 323 |
<input type="password" id="apiKeyInput" placeholder="sk-...">
|
| 324 |
</div>
|
| 325 |
-
<
|
| 326 |
-
<
|
| 327 |
-
<
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
<label>Model (optional)</label>
|
| 334 |
-
<input type="text" id="apiModel" placeholder="e.g. gpt-4o-mini">
|
| 335 |
-
</div>
|
| 336 |
-
</div>
|
| 337 |
-
</details>
|
| 338 |
<button onclick="saveApiKey()">Connect</button>
|
| 339 |
</div>
|
| 340 |
|
|
|
|
| 317 |
<div class="step-num" style="border-color:var(--yellow);color:var(--yellow)">!</div>
|
| 318 |
<div class="step-title">Connect your LLM</div>
|
| 319 |
</div>
|
| 320 |
+
<p class="step-desc">SGO works with any OpenAI-compatible API. Your key stays in your browser session.</p>
|
| 321 |
<div class="field">
|
| 322 |
<label>API key</label>
|
| 323 |
<input type="password" id="apiKeyInput" placeholder="sk-...">
|
| 324 |
</div>
|
| 325 |
+
<div class="field">
|
| 326 |
+
<label>Base URL</label>
|
| 327 |
+
<input type="text" id="apiBaseUrl" placeholder="e.g. https://openrouter.ai/api/v1 or https://api.openai.com/v1">
|
| 328 |
+
</div>
|
| 329 |
+
<div class="field">
|
| 330 |
+
<label>Model</label>
|
| 331 |
+
<input type="text" id="apiModel" placeholder="e.g. gpt-4o-mini or anthropic/claude-sonnet-4" value="openai/gpt-4o-mini">
|
| 332 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
<button onclick="saveApiKey()">Connect</button>
|
| 334 |
</div>
|
| 335 |
|