-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
116 lines (110 loc) · 3.08 KB
/
options.html
File metadata and controls
116 lines (110 loc) · 3.08 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
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
<!DOCTYPE html>
<html>
<head>
<title>Extension Settings</title>
<style>
body {
padding: 20px;
font-family: system-ui, -apple-system, sans-serif;
}
.container {
max-width: 500px;
margin: 0 auto;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: 500;
}
input[type="text"], select {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
background: #0070f3;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background: #0051cc;
}
#status {
margin-top: 16px;
color: #16a34a;
}
.voice-description {
font-size: 0.9em;
color: #666;
margin-top: 4px;
}
</style>
</head>
<body>
<div class="container">
<h1>Extension Settings</h1>
<div id="openai-settings" class="provider-settings">
<h3>OpenAI Configuration</h3>
<div class="form-group">
<label for="apiKey">OpenAI API Key:</label>
<input type="text" id="apiKey" placeholder="Enter your OpenAI API key">
</div>
</div>
<h2>LLM Configuration</h2>
<div class="form-group">
<label for="sidepanelProvider">AI Provider:</label>
<select id="sidepanelProvider">
<option value="openai">OpenAI</option>
<option value="openrouter">OpenRouter</option>
</select>
</div>
<div id="sidepanel-openai-settings" class="provider-settings">
<div class="form-group">
<label for="sidepanelModel">OpenAI Model:</label>
<select id="sidepanelModel">
<option value="">Select a model...</option>
</select>
<div id="sidepanelModelStatus" style="margin-top: 4px; font-size: 0.9em;"></div>
</div>
</div>
<div id="sidepanel-openrouter-settings" class="provider-settings" style="display: none;">
<div class="form-group">
<label for="sidepanelOpenrouterApiKey">OpenRouter API Key:</label>
<input type="text" id="sidepanelOpenrouterApiKey" placeholder="Enter your OpenRouter API key">
</div>
<div class="form-group">
<label>
<input type="checkbox" id="openrouterFreeOnly"> Show free models only
</label>
</div>
<div class="form-group">
<label for="sidepanelOpenrouterModel">OpenRouter Model:</label>
<select id="sidepanelOpenrouterModel">
<option value="">Select a model...</option>
</select>
<div id="sidepanelOpenrouterModelStatus" style="margin-top: 4px; font-size: 0.9em;"></div>
</div>
</div>
<h2>Text-to-Speech Settings</h2>
<div class="form-group">
<label for="browserVoice">Voice:</label>
<select id="browserVoice">
<option value="">Loading voices...</option>
</select>
<div class="voice-description" id="voiceDescription">
Select a browser voice for text-to-speech
</div>
</div>
<button id="save">Save Settings</button>
<div id="status"></div>
</div>
<script src="options.js"></script>
</body>
</html>