-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
220 lines (103 loc) · 5.18 KB
/
index.html
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LLM API 价格比较器</title>
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="LLM_API_Price_Comparator.png" type="image/png">
<meta name="description" content="LLM API 价格比较器 - 比较不同LLM API服务商的价格,自动获取美元/人民币汇率,帮助用户选择最合适的服务。">
<meta name="keywords" content="LLM, API, 价格比较, 汇率, AI, 机器学习, 成本计算">
<meta name="author" content="CookSleep">
</head>
<body>
<div id="main-content">
<div class="container">
<header>
<div class="logo-container">
<img src="LLM_API_Price_Comparator.png" alt="LLM API 价格比较器 Logo" class="logo">
</div>
<div class="header-right">
<h1>LLM API 价格比较器</h1>
<div class="exchange-rate-container">
<span id="exchangeRateLabel">今日汇率 (USD/CNY): </span>
<span id="exchangeRateValue">获取中...</span>
<svg class="info-icon" viewBox="0 0 24 24" width="16" height="16">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
</svg>
<div class="tooltip">汇率数据来源:Alpha Vantage API<br>每日更新时间:北京时间 09:30</div>
</div>
<a href="https://github.com/CookSleep/LLM_API_Price_Comparator_Web" target="_blank" class="github-link">GitHub @CookSleep</a>
</div>
</header>
<div class="input-section">
<div class="token-input">
<div>
<label for="inputtokens">输入token数:</label>
<input type="number" id="inputtokens" placeholder="仅数字" step="any">
</div>
<div>
<label for="outputtokens">输出token数:</label>
<input type="number" id="outputtokens" placeholder="仅数字" step="any">
</div>
</div>
<div class="usage-tips">
<ul>
<li>使用键盘方向键可以快速在输入、选择框间移动</li>
<li>使用鼠标滚轮可以快速切换下拉选项</li>
</ul>
</div>
</div>
<div class="table-container">
<table id="providersTable">
<thead>
<tr>
<th>服务商名称</th>
<th>充值金额</th>
<th>充值货币</th>
<th>到账余额</th>
<th>输入价格</th>
<th>输出价格</th>
<th>不区分输入输出</th>
<th>token单位</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<!-- 表格 -->
</tbody>
</table>
</div>
<button id="addProviderBtn" class="add-btn">
<svg class="icon" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="10"/>
<line x1="12" y1="8" x2="12" y2="16"/>
<line x1="8" y1="12" x2="16" y2="12"/>
</svg>
</button>
<div class="results">
<h3>费用排名(由低至高):</h3>
<p class="results-disclaimer">结果仅供比价参考,贵的可能有贵的道理,便宜也不一定没好货,选择需结合实际体验。</p>
<div id="results-list"></div>
</div>
<div class="actions">
<button id="calculateBtn">计算成本</button>
<button id="clearAllBtn">清除所有数据</button>
</div>
</div>
</div>
<div id="customAlert" class="modal">
<div class="modal-content">
<p id="alertMessage"></p>
<div class="alert-buttons">
<button id="alertConfirm">确定</button>
<button id="alertCancel">取消</button>
</div>
</div>
</div>
<footer>
<p>本工具不收集、存储或处理任何个人信息<br>所有计算都在您的浏览器中本地进行</p>
</footer>
<script src="script.js"></script>
</body>
</html>