-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
45 lines (38 loc) · 1.14 KB
/
options.html
File metadata and controls
45 lines (38 loc) · 1.14 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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenPM 设置</title>
<link rel="stylesheet" href="options.css" />
</head>
<body>
<main class="page">
<h1>OpenPM 设置</h1>
<p class="sub">在这里配置 AI 服务商、模型下拉选择与 API Key。</p>
<section class="card">
<label>
服务商
<select id="provider"></select>
</label>
<label>
模型
<select id="model"></select>
</label>
<label>
自定义模型(可选)
<input id="customModel" type="text" placeholder="若填写则优先使用,例如 gpt-4o-mini" />
</label>
<label>
API Key
<input id="apiKey" type="password" placeholder="sk-..." />
</label>
<div class="actions">
<button id="saveBtn" class="primary">保存设置</button>
</div>
<p id="status" class="status"></p>
</section>
</main>
<script src="options.js" type="module"></script>
</body>
</html>