Eric Xu commited on
Commit
d323191
·
unverified ·
1 Parent(s): c9d61d3

Show base URL and model fields by default — don't lock to any provider

Browse files
Files changed (1) hide show
  1. 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 needs an OpenAI-compatible API key to run evaluations. 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
- <details class="mb-8">
326
- <summary style="cursor:pointer;color:var(--text2);font-size:0.85rem">Custom endpoint</summary>
327
- <div style="padding:8px 0">
328
- <div class="field">
329
- <label>Base URL (optional)</label>
330
- <input type="text" id="apiBaseUrl" placeholder="e.g. https://api.openai.com/v1">
331
- </div>
332
- <div class="field">
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