summaryrefslogtreecommitdiffstats
path: root/g4f/gui/client/html/index.html
blob: ae5519e672cb9797317733ef988be39b08140a99 (plain) (blame)
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
<!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">
    <meta name="description" content="A conversational AI system that listens, learns, and challenges">
    <meta property="og:title" content="ChatGPT">
    <meta property="og:image" content="https://openai.com/content/images/2022/11/ChatGPT.jpg">
    <meta property="og:description" content="A conversational AI system that listens, learns, and challenges">
    <meta property="og:url" content="https://g4f.ai">
    <link rel="stylesheet" href="/assets/css/style.css">
    <link rel="apple-touch-icon" sizes="180x180" href="/assets/img/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon-16x16.png">
    <link rel="manifest" href="/assets/img/site.webmanifest">
    <script src="/assets/js/icons.js"></script>
    <script src="/assets/js/highlightjs-copy.min.js"></script>
    <script src="/assets/js/chat.v2.js" defer></script>
    <script src="https://cdn.jsdelivr.net/npm/markdown-it@13.0.1/dist/markdown-it.min.js"></script>
    <link rel="stylesheet"
        href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/styles/base16/dracula.min.css">
    <script>
        const user_image = `<img src="/assets/img/user.png" alt="your avatar">`;
        const gpt_image = `<img src="/assets/img/gpt.png" alt="your avatar">`;
    </script>
    <style>
        .hljs {
            color: #e9e9f4;
            background: #28293629;
            border-radius: var(--border-radius-1);
            border: 1px solid var(--blur-border);
            font-size: 15px;
        }

        #message-input {
            margin-right: 30px;
            height: 80px;
        }

        #message-input::-webkit-scrollbar {
            width: 5px;
        }

        /* Track */
        #message-input::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        /* Handle */
        #message-input::-webkit-scrollbar-thumb {
            background: #c7a2ff;
        }

        /* Handle on hover */
        #message-input::-webkit-scrollbar-thumb:hover {
            background: #8b3dff;
        }
    </style>
    <script src="/assets/js/highlight.min.js"></script>
    <script>window.conversation_id = `{{chat_id}}`</script>
    <title>g4f - gui</title>
</head>

<body>
    <div class="gradient"></div>
    <div class="row">
        <div class="box conversations">
            <div class="top">
                <button class="new_convo" onclick="new_conversation()">
                    <i class="fa-regular fa-plus"></i>
                    <span>New Conversation</span>
                </button>
            </div>
            <div class="bottom_buttons">
                <button onclick="delete_conversations()">
                    <i class="fa-regular fa-trash"></i>
                    <span>Clear Conversations</span>
                </button>
                <div class="info">
                    <i class="fa-brands fa-telegram"></i>
                    <span class="convo-title">telegram: <a href="https://t.me/g4f_official">@g4f_official</a><br>
                    </span>
                </div>
                <div class="info">
                    <i class="fa-brands fa-github"></i>
                    <span class="convo-title">github: <a href="https://github.com/xtekky/gpt4free">@gpt4free</a><br>
                        leave a star ; )
                    </span>
                </div>
            </div>
        </div>
        <div class="conversation">
            <div class="stop_generating stop_generating-hidden">
                <button id="cancelButton">
                    <span>Stop Generating</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="Ask a question" cols="30" rows="10"
                        style="white-space: pre-wrap;resize: none;"></textarea>
                    <div id="send-button">
                        <i class="fa-solid fa-paper-plane-top"></i>
                    </div>
                </div>
            </div>
            <div class="buttons">
                <div class="field">
                    <input type="checkbox" id="switch" />
                    <label for="switch"></label>
                    <span class="about">Web Access</span>
                </div>
                <div class="field">
                    <select name="model" id="model">
                        <option value="gpt-3.5-turbo" selected>gpt-3.5</option>
                        <option value="gpt-3.5-turbo-0613">gpt-3.5 fast</option>
                        <option value="gpt-3.5-turbo-16k">gpt-3.5 16k</option>
                        <option value="gpt-3.5-turbo-16k-0613">gpt-3.5 16k fast</option>
                        <option value="gpt-4">gpt-4</option>
                        <option value="gpt-4-0613">gpt-4 fast</option>
                        <option value="gpt-4-32k">gpt-4 32k</option>
                        <option value="gpt-4-32k-0613">gpt-4 32k fast</option>
                    </select>
                </div>
                <div class="field">
                    <select name="jailbreak" id="jailbreak">
                        <option value="default" selected>Set Jailbreak</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 class="field">
                        <select name="provider" id="provider">
                            <option value="g4f.Provider.Auto" selected>Set Provider</option>
                            <option value="g4f.Provider.AItianhuSpace">AItianhuSpace</option>
                            <option value="g4f.Provider.ChatgptLogin">ChatgptLogin</option>
                            <option value="g4f.Provider.ChatgptDemo">ChatgptDemo</option>
                            <option value="g4f.Provider.ChatgptDuo">ChatgptDuo</option>
                            <option value="g4f.Provider.Vitalentum">Vitalentum</option>
                            <option value="g4f.Provider.ChatgptAi">ChatgptAi</option>
                            <option value="g4f.Provider.AItianhu">AItianhu</option>
                            <option value="g4f.Provider.ChatBase">ChatBase</option>
                            <option value="g4f.Provider.Liaobots">Liaobots</option>
                            <option value="g4f.Provider.Yqcloud">Yqcloud</option>
                            <option value="g4f.Provider.Myshell">Myshell</option>
                            <option value="g4f.Provider.FreeGpt">FreeGpt</option>
                            <option value="g4f.Provider.Vercel">Vercel</option>
                            <option value="g4f.Provider.Aichat">Aichat</option>
                            <option value="g4f.Provider.GPTalk">GPTalk</option>
                            <option value="g4f.Provider.GptGod">GptGod</option>
                            <option value="g4f.Provider.AiAsk">AiAsk</option>
                            <option value="g4f.Provider.GptGo">GptGo</option>
                            <option value="g4f.Provider.Ylokh">Ylokh</option>
                            <option value="g4f.Provider.Bard">Bard</option>
                            <option value="g4f.Provider.Aibn">Aibn</option>
                            <option value="g4f.Provider.Bing">Bing</option>
                            <option value="g4f.Provider.You">You</option>
                            <option value="g4f.Provider.H2o">H2o</option>
                            <option value="g4f.Provider.Aivvm">Aivvm</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="mobile-sidebar">
        <i class="fa-solid fa-bars"></i>
    </div>
    <script>
    </script>
</body>

</html>