Spaces:
Running
Running
CassiopeiaCode
commited on
Commit
·
0948a00
1
Parent(s):
a5bfe39
refactor: 移除前端顶部配置面板
Browse files- 删除API Base、Authorization和健康检查配置区域
- 简化界面,直接显示标签页导航
- frontend/index.html +0 -25
frontend/index.html
CHANGED
|
@@ -189,31 +189,6 @@
|
|
| 189 |
<body>
|
| 190 |
<div class="container">
|
| 191 |
<h1>v2 前端控制台</h1>
|
| 192 |
-
<div class="panel">
|
| 193 |
-
<div class="row">
|
| 194 |
-
<div class="field" style="max-width:420px">
|
| 195 |
-
<label>API Base</label>
|
| 196 |
-
<input id="base" value="/" />
|
| 197 |
-
</div>
|
| 198 |
-
<div class="field" style="max-width:520px">
|
| 199 |
-
<label>Authorization(OpenAI风格白名单;仅授权用途;OPENAI_KEYS 为空时可留空)</label>
|
| 200 |
-
<input id="auth" placeholder="自定义Key(可留空:开发模式)" />
|
| 201 |
-
</div>
|
| 202 |
-
<div class="field" style="max-width:300px">
|
| 203 |
-
<label>健康检查</label>
|
| 204 |
-
<div class="row">
|
| 205 |
-
<button class="btn-secondary" onclick="ping()">Ping</button>
|
| 206 |
-
<div id="health" class="chip">未检测</div>
|
| 207 |
-
</div>
|
| 208 |
-
</div>
|
| 209 |
-
</div>
|
| 210 |
-
<div class="sep"></div>
|
| 211 |
-
<div class="row">
|
| 212 |
-
<div class="chip mono">OPENAI_KEYS="key1,key2"(白名单,仅授权,与账号无关)</div>
|
| 213 |
-
<div class="chip mono">当 OPENAI_KEYS 为空或未配置:开发模式,不校验 Authorization</div>
|
| 214 |
-
<div class="chip mono">账号选择:从所有“启用”的账号中随机选择</div>
|
| 215 |
-
</div>
|
| 216 |
-
</div>
|
| 217 |
|
| 218 |
<div class="tabs">
|
| 219 |
<button class="tab active" onclick="switchTab('accounts')">账号管理</button>
|
|
|
|
| 189 |
<body>
|
| 190 |
<div class="container">
|
| 191 |
<h1>v2 前端控制台</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
|
| 193 |
<div class="tabs">
|
| 194 |
<button class="tab active" onclick="switchTab('accounts')">账号管理</button>
|