-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
151 lines (132 loc) · 5.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>ZChat - Your Website's Personal ChatGPT</title>
<meta name="description" content="Host ChatGPT on your own web server.">
<meta property="og:title" content="ChatGPT">
<meta property="og:image" content="https://openai.com/content/images/2022/11/ChatGPT.jpg">
<link rel="stylesheet" href="static/css/style.css">
<link rel="stylesheet" href="static/css/googlecode.min.css">
<link rel="apple-touch-icon" sizes="180x180" href="static/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="static/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="static/img/favicon-16x16.png">
<link rel="manifest" href="static/img/site.webmanifest">
<script src="static/js/icons.js"></script>
<script src="static/js/highlight.min.js"></script>
<script src="static/js/highlightjs-copy.min.js"></script>
<script>
const user_image = `<img src="static/img/user.png" alt="User Avatar">`;
const gpt_image = `<img src="static/img/gpt.png" alt="GPT Avatar">`;
</script>
</head>
<body>
<div class="gradient"></div>
<div class="row">
<div class="box conversations">
<div class="bottom_buttons" id="pR">
<button>
<i class="fa-regular fa-upload"></i>
<span>Load Chat</span>
</button>
</div>
<div id="sMes" style="margin-top: -200px;"></div>
<div class="top">
<div class="spinner"></div>
</div>
<div class="bottom_buttons">
<button onclick="cleanDynamicDiv()">
<i class="fa-regular fa-trash"></i>
<span>Wipe Chat</span>
</button>
<div class="info">
<i class="fa-regular fa-circle-info"></i>
<span class="convo-title">
By: <a href="https://zylerkade.com" target="_blank">@zylerkade</a><br />
Version: 0.1.1-beta<br />
Release: 2023-05-25<br />
</span>
</div>
</div>
</div>
<div class="conversation">
<div class="stop_generating stop_generating-hidden">
<button id="cancelButton">
<span>Stop</span>
<i class="fa-regular fa-stop"></i>
</button>
</div>
<div class="box" id="messages"></div>
<div class="user-input">
<div class="box input-box">
<textarea id="message-input" placeholder="Hello, friend! How can I help you?" style="white-space: pre-wrap;"></textarea>
<div id="send" onclick="sendMessage()">
<i class="fa-regular fa-paper-plane-top"></i>
</div>
</div>
</div>
<div class="bottom_buttons">
<div class="field">
<input type="checkbox" id="theme-switch">
<label for="theme-switch"></label>
<span class="about">Change Theme</span>
<input type="checkbox" id="web-switch"/>
<label for="web-switch"></label>
<span class="about">Web Access</span>
<span class="about">Model:</span>
<select name="model" id="model">
<option value="gpt-3.5-turbo" selected>gpt-3.5-turbo</option>
<option value="gpt-3.5-turbo-0301">gpt-3.5-turbo-0301</option>
<option value="gpt-4">gpt-4</option>
<option value="gpt-4-0314">gpt-4-0314</option>
</select>
<button onclick="savePage()" style="width:175px; margin-left:10px;">
<i class="fa-regular fa-floppy-disk fa-lg"></i>
<span>Save Chat</span>
</button>
</div>
<div class="field" style="display:none">
<select name="jailbreak" id="jailbreak">
<option value="" selected>default</option>
<option value="gpt-math-1.0">math 1.0</option>
<option value="gpt-dude-1.0">dude 1.0</option>
<option value="gpt-dan-1.0">dan 1.0</option>
<option value="gpt-dan-2.0">dan 2.0</option>
<option value="gpt-dev-2.0">dev 2.0</option>
<option value="gpt-evil-1.0">evil 1.0</option>
</select>
</div>
<div class="field" style="display:none">
<select name="temperature" id="temperature">
<option value="" selected>Temperature</option>
<option value="0.5">0.5</option>
<option value="0.6">0.6</option>
<option value="0.7">0.7</option>
<option value="0.8">0.8</option>
<option value="0.9">0.9</option>
<option value="1.0">1.0</option>
</select>
</div>
<div class="field" style="display:none">
<form class="color-picker">
<fieldset>
<label for="light" class="visually-hidden">Light</label>
<input type="radio" title="light" name="theme" id="light" checked>
<label for="dark" class="visually-hidden">Dark theme</label>
<input type="radio" title="dark" id="dark" name="theme">
</fieldset>
</form>
</div>
</div>
</div>
</div>
<div class="mobile-sidebar">
<i class="fa-solid fa-bars"></i>
</div>
<script src="static/js/marked.min.js"></script>
<script src="static/js/chat.js"></script>
<script src="static/js/pref.js"></script>
</body>
</html>