-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
55 lines (46 loc) · 1.65 KB
/
Copy pathoptions.html
File metadata and controls
55 lines (46 loc) · 1.65 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
50
51
52
53
54
55
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>V2EX 评论观点分布 - 设置</title>
<link rel="stylesheet" href="options.css" />
</head>
<body>
<main class="container">
<h1>V2EX 评论观点分布</h1>
<p class="desc">配置 V2EX 官方 API 与 OpenAI 兼容模型参数后,打开 V2EX 帖子页即可自动分析评论观点。</p>
<label>
<span>V2EX API Base URL</span>
<input id="v2exApiBaseUrl" type="url" placeholder="https://www.v2ex.com/api" />
</label>
<label>
<span>OpenAI Base URL</span>
<input id="baseUrl" type="url" placeholder="https://api.openai.com/v1" />
</label>
<label>
<span>OpenAI API Key</span>
<input id="apiKey" type="password" placeholder="sk-..." />
</label>
<label>
<span>模型</span>
<input id="model" type="text" placeholder="gpt-4o-mini" />
</label>
<label>
<span>temperature</span>
<input id="temperature" type="number" min="0" max="2" step="0.1" />
</label>
<label>
<span>最大观点数量</span>
<input id="maxViewpoints" type="number" min="1" max="12" step="1" />
</label>
<label>
<span>分析阈值(原始评论数 ≤ 该值时跳过分析)</span>
<input id="minRawCommentsThreshold" type="number" min="0" max="500" step="1" />
</label>
<button id="saveBtn">保存设置</button>
<p id="status" class="status"></p>
</main>
<script src="options.js"></script>
</body>
</html>