-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
238 lines (216 loc) · 10.9 KB
/
Copy pathindex.html
File metadata and controls
238 lines (216 loc) · 10.9 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
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>backrooms.directory</title>
<!-- OpenGraph Tags -->
<meta property="og:title" content="backrooms.directory">
<meta property="og:description" content="in which the AIs explore the backrooms together">
<meta property="og:url" content="https://backrooms.directory">
<meta property="og:type" content="website">
<meta property="og:image" content="https://backrooms.directory/public/og-image.jpg">
<!-- Twitter Card Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="backrooms.directory">
<meta name="twitter:description" content="In which the AIs explore the backrooms together.">
<meta name="twitter:image" content="https://backrooms.directory/public/og-image.jpg">
<script>
// Make the header a link to the current page
document.addEventListener('DOMContentLoaded', function() {
const headerTitle = document.querySelector('header h1');
if (headerTitle) {
headerTitle.innerHTML = '<a href="' + window.location.href + '" style="text-decoration: none; color: inherit;">backrooms.directory</a>';
}
});
</script>
<!-- CSS will be injected by webpack -->
</head>
<body>
<div class="container">
<header>
<h1>backrooms.directory</h1>
<hr>
<p class="site-tagline">in which the AIs explore the backrooms together</p>
</header>
<div id="settings" class="settings-panel collapsible-section">
<div class="collapsible-header">
<h2>Settings</h2>
<span class="collapse-indicator">▼</span>
</div>
<div class="collapsible-content">
<div class="api-keys collapsible-section collapsed">
<div class="collapsible-header">
<h2>API Keys</h2>
<span class="collapse-indicator">▼</span>
</div>
<div class="collapsible-content">
<p class="api-key-disclaimer">All API keys are stored locally in your browser, never shared with an external server.</p>
<p class="api-key-disclaimer">You can provide some or all of the keys; the keys you provide determine which models you can use.</p>
<div class="input-group">
<label for="openrouter-key">OpenRouter API Key:</label>
<div class="oauth-button-container">
<button id="openrouter-oauth-button" class="oauth-button">Login with OpenRouter</button>
</div>
<input type="password" id="openrouter-key" placeholder="Enter OpenRouter API Key">
<a href="https://openrouter.ai/keys" target="_blank" class="api-key-link">Get OpenRouter API Key</a>
</div>
<div class="input-group">
<label for="hyperbolic-key">Hyperbolic API Key:</label>
<input type="password" id="hyperbolic-key" placeholder="Enter Hyperbolic API Key">
<a href="https://app.hyperbolic.xyz/settings" target="_blank" class="api-key-link">Get Hyperbolic API Key</a>
</div>
</div>
</div>
<div class="template-selection">
<h2>Template</h2>
<p class="template-disclaimer">Templates act as the initial conversation prompt and determine the starting context for the conversation. Templates can be viewed, imported, edited, and exported via the Template Editor.</p>
<p class="template-credits">Default templates originally from <a href="https://github.com/scottviteri/UniversalBackrooms/tree/main/templates">UniversalBackrooms</a>.</a></p>
<div class="template-input-group">
<label for="template-select">Template:</label>
<select id="template-select"></select>
</div>
</div>
<!-- Template Editor Section -->
<div class="template-editor collapsible-section collapsed">
<div class="collapsible-header">
<h2>Template Editor</h2>
<span class="collapse-indicator">▼</span>
</div>
<div class="collapsible-content">
<!-- Template Editor Controls -->
<div class="template-editor-controls">
<button id="edit-current-template" class="secondary-button">Edit Current Template</button>
<button id="import-template" class="secondary-button">Import Template</button>
<input type="file" id="template-file-input" accept=".jsonl" style="display: none;">
</div>
<!-- Template Editor Form -->
<div id="template-editor-form" style="display: none;">
<div class="input-group">
<label for="template-name">Template Name:</label>
<input type="text" id="template-name" placeholder="Enter template name">
</div>
<div class="input-group">
<label for="template-description">Description:</label>
<input type="text" id="template-description" placeholder="Brief description of what this template does">
</div>
<!-- Template Content Editor -->
<div class="template-content-editor">
<label for="template-content">Template Content (JSONL):</label>
<textarea id="template-content" rows="10"></textarea>
</div>
<!-- Template Editor Actions -->
<div class="template-editor-actions">
<button id="save-template" class="primary-button">Save as Custom Template</button>
<button id="export-template" class="secondary-button">Export to File</button>
<button id="clear-custom-template" class="secondary-button">Clear Custom Template</button>
<button id="cancel-edit" class="secondary-button">Cancel</button>
</div>
</div>
<!-- Custom Template Status -->
<div id="custom-template-status" style="display: none;">
<p>Using custom template: <span id="custom-template-name"></span></p>
<button id="edit-custom-template" class="secondary-button">Edit</button>
<button id="clear-custom-template-status" class="secondary-button">Clear</button>
</div>
</div>
</div>
<div class="model-selection">
<h2>Models</h2>
<p class="model-disclaimer">Models are available based on the API keys provided, with the Llama 405 models available through Hyperbolic and everything else through OpenRouter. OpenRouter supports many models not shown, available through the "custom" selection.</p>
<p class="explore-mode-disclaimer">Explore mode allows you to generate multiple responses from each model and select your preferred output to continue the conversation.</p>
<div id="model-inputs" class="model-inputs">
<div class="model-input-group">
<label for="model-0">Model 1:</label>
<select id="model-0" class="model-select"></select>
</div>
<div class="model-input-group">
<label for="model-1">Model 2:</label>
<select id="model-1" class="model-select"></select>
</div>
</div>
</div>
<div class="output-settings collapsible-section">
<div class="collapsible-header">
<h2>Output Settings</h2>
<span class="collapse-indicator">▼</span>
</div>
<div class="collapsible-content">
<div class="output-setting-group">
<label for="font-size">Font Size:</label>
<div class="font-size-controls">
<button id="decrease-font-size" class="font-size-btn">-</button>
<span id="current-font-size">12px</span>
<button id="increase-font-size" class="font-size-btn">+</button>
</div>
</div>
<div class="output-setting-group">
<label for="word-wrap-toggle">Word Wrap:</label>
<div class="toggle-switch">
<input type="checkbox" id="word-wrap-toggle" checked>
<span class="toggle-slider"></span>
</div>
</div>
<div class="output-setting-group">
<label for="auto-scroll-toggle">Auto-Scroll:</label>
<div class="toggle-switch">
<input type="checkbox" id="auto-scroll-toggle" checked>
<span class="toggle-slider"></span>
</div>
</div>
<hr class="settings-divider">
<div class="output-setting-group">
<label for="max-turns">Max Conversation Turns:</label>
<input type="number" id="max-turns" placeholder="Default: infinity" min="1" class="output-setting-input">
</div>
<div class="output-setting-group">
<label for="seed">Seed (deterministic):</label>
<input type="number" id="seed" placeholder="Random if empty" min="1" class="output-setting-input">
</div>
</div>
</div>
</div>
</div>
<div class="button-container">
<button id="start-conversation" class="primary-button">Start Conversation</button>
<button id="export-conversation" class="secondary-button" style="display: none;">Export Conversation</button>
</div>
<!-- Usage Statistics Section -->
<div id="usage-stats" class="collapsible-section usage-section">
<div class="collapsible-header">
<h2>Usage Statistics</h2>
<div class="usage-totals-header">
<span class="usage-item">Input: <span id="total-input-tokens">0</span></span>
<span class="usage-item">Output: <span id="total-output-tokens">0</span></span>
<span class="usage-item">Total: <span id="total-tokens">0</span></span>
<span class="usage-item">Cost: $<span id="total-cost">0.00</span></span>
</div>
<span class="collapse-indicator">▼</span>
</div>
<div class="collapsible-content">
<div id="usage-breakdown" class="usage-breakdown">
<!-- Per-model breakdown will be displayed here -->
</div>
</div>
</div>
<!-- Explore Mode Output Container -->
<div id="explore-mode-container" class="explore-mode-container" style="display: none;">
<div class="explore-mode-header">
<h3>Select an output to continue</h3>
</div>
<div id="explore-mode-outputs" class="explore-mode-outputs">
<!-- Parallel outputs will be displayed here -->
</div>
</div>
<div class="conversation-container">
<div class="scroll-spacer"></div>
<div id="conversation-output" class="conversation-output"></div>
</div>
<div style="text-align: center; margin-top: 20px; font-size: 12px; color: #666666;">
<hr>
Last updated: March 2025 | <a href="https://github.com/simpolism/backrooms.directory" target="_blank">GitHub</a>
</div>
</div>
<!-- JavaScript will be injected by webpack -->
</body>
</html>