-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
49 lines (43 loc) · 1.57 KB
/
options.html
File metadata and controls
49 lines (43 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quick Card AI 设置</title>
<link rel="stylesheet" href="styles/common.css">
<link rel="stylesheet" href="styles/options.css">
</head>
<body>
<main class="options-shell">
<section class="hero">
<p class="eyebrow">配置</p>
<h1>连接你的大模型</h1>
<p class="subcopy">不再受限。连接到任何 OpenAI 兼容或 Anthropic 兼容的 API。自定义端点、模型和 API 密钥。</p>
</section>
<section class="panel">
<label class="field">
<span>协议格式</span>
<select id="providerFormatSelect"></select>
</label>
<label class="field">
<span>接口地址</span>
<input id="baseUrlInput" type="text" placeholder="https://your-gateway.example/v1">
</label>
<label class="field">
<span>模型名称</span>
<input id="modelInput" type="text" placeholder="gpt-4o">
</label>
<label class="field">
<span>API 密钥</span>
<input id="apiKeyInput" type="password" placeholder="sk-...">
</label>
<div class="actions">
<button id="applyFormatBtn" class="ghost">使用示例</button>
<button id="saveBtn" class="primary">保存设置</button>
</div>
<p id="saveStatus" class="inline-note"></p>
</section>
</main>
<script type="module" src="options.js"></script>
</body>
</html>