-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsettings.html
More file actions
66 lines (61 loc) · 2.93 KB
/
settings.html
File metadata and controls
66 lines (61 loc) · 2.93 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
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>系統設定</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body class="bg-light">
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
<div class="container">
<a class="navbar-brand" href="index.html">
<i class="bi bi-gear text-primary"></i>
系統設定
</a>
</div>
</nav>
<div class="container mt-4">
<div class="card">
<div class="card-header">
<h5 class="mb-0">API 設定</h5>
</div>
<div class="card-body">
<form id="settingsForm">
<div class="mb-3">
<label for="assemblyaiApiKey" class="form-label">AssemblyAI API Key</label>
<input type="password" class="form-control" id="assemblyaiApiKey" required>
<div class="form-text">用於語音轉文字的 API Key</div>
</div>
<div class="mb-3">
<label for="geminiApiKey" class="form-label">Gemini API Key</label>
<input type="password" class="form-control" id="geminiApiKey" required>
<div class="form-text">用於生成會議摘要的 API Key</div>
</div>
<div class="mb-3">
<label for="geminiModel" class="form-label">Gemini Model</label>
<div class="input-group">
<input type="text" class="form-control" id="geminiModel" value="gemini-2.5-pro-exp-03-25" required>
<a href="https://ai.google.dev/gemini-api/docs/models?hl=zh-tw" target="_blank" class="btn btn-outline-secondary">
<i class="bi bi-box-arrow-up-right"></i> 查看可用模型
</a>
</div>
</div>
<div class="d-flex justify-content-end">
<button type="submit" class="btn btn-primary">
<i class="bi bi-save"></i> 儲存設定
</button>
</div>
</form>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dexie@3.2.4/dist/dexie.min.js"></script>
<script src="js/config.js"></script>
<script src="js/db.js"></script>
<script src="js/settings.js"></script>
</body>
</html>