2023-10-06 18:52:17 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
2023-10-09 22:47:58 +00:00
|
|
|
<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>
|
2023-10-19 19:25:13 +00:00
|
|
|
<script src="/assets/js/chat.v1.js" defer></script>
|
2023-10-09 22:47:58 +00:00
|
|
|
<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;
|
2024-01-13 14:37:36 +00:00
|
|
|
height: 82px;
|
|
|
|
margin-left: 20px;
|
2023-10-09 22:47:58 +00:00
|
|
|
}
|
2023-10-06 18:52:17 +00:00
|
|
|
|
2023-10-09 22:47:58 +00:00
|
|
|
#message-input::-webkit-scrollbar {
|
|
|
|
width: 5px;
|
|
|
|
}
|
2023-10-06 18:52:17 +00:00
|
|
|
|
2023-10-09 22:47:58 +00:00
|
|
|
/* Track */
|
|
|
|
#message-input::-webkit-scrollbar-track {
|
|
|
|
background: #f1f1f1;
|
|
|
|
}
|
2023-10-06 18:52:17 +00:00
|
|
|
|
2023-10-09 22:47:58 +00:00
|
|
|
/* 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">
|
2023-10-10 13:37:29 +00:00
|
|
|
<i class="fa-brands fa-telegram"></i>
|
2023-10-19 19:25:13 +00:00
|
|
|
<span class="convo-title">tele ~ <a href="https://t.me/g4f_official">@g4f_official</a>
|
2023-10-09 22:47:58 +00:00
|
|
|
</span>
|
2023-10-06 18:52:17 +00:00
|
|
|
</div>
|
2023-10-09 22:47:58 +00:00
|
|
|
<div class="info">
|
|
|
|
<i class="fa-brands fa-github"></i>
|
2023-10-19 19:25:13 +00:00
|
|
|
<span class="convo-title">github ~ <a href="https://github.com/xtekky/gpt4free">@gpt4free</a>
|
2023-10-09 22:47:58 +00:00
|
|
|
</span>
|
2023-10-06 18:52:17 +00:00
|
|
|
</div>
|
2023-12-07 06:18:05 +00:00
|
|
|
<div class="info">
|
|
|
|
<i class="fa-solid fa-star"></i>
|
|
|
|
<span id="version_text" class="convo-title"></span>
|
|
|
|
</div>
|
2023-10-06 18:52:17 +00:00
|
|
|
</div>
|
2023-10-09 22:47:58 +00:00
|
|
|
</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>
|
2023-12-10 20:46:11 +00:00
|
|
|
<div class="regenerate regenerate-hidden">
|
|
|
|
<button id="regenerateButton">
|
|
|
|
<span>Regenerate</span>
|
|
|
|
<i class="fa-solid fa-rotate"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2023-10-09 22:47:58 +00:00
|
|
|
<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>
|
2024-01-13 14:37:36 +00:00
|
|
|
<label for="image" title="Works only with Bing and OpenaiChat">
|
|
|
|
<input type="file" id="image" name="image" accept="image/png, image/gif, image/jpeg" required/>
|
|
|
|
<i class="fa-regular fa-image"></i>
|
|
|
|
</label>
|
2023-10-09 22:47:58 +00:00
|
|
|
<div id="send-button">
|
|
|
|
<i class="fa-solid fa-paper-plane-top"></i>
|
|
|
|
</div>
|
2023-10-06 18:52:17 +00:00
|
|
|
</div>
|
2023-10-09 22:47:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="buttons">
|
|
|
|
<div class="field">
|
2024-01-13 14:37:36 +00:00
|
|
|
<select name="model" id="model"></select>
|
2023-10-06 18:52:17 +00:00
|
|
|
</div>
|
2023-10-09 22:47:58 +00:00
|
|
|
<div class="field">
|
2024-01-12 01:14:35 +00:00
|
|
|
<select name="jailbreak" id="jailbreak" style="display: none;">
|
2023-10-09 22:47:58 +00:00
|
|
|
<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>
|
2023-10-06 18:52:17 +00:00
|
|
|
<div class="field">
|
2024-01-13 14:37:36 +00:00
|
|
|
<select name="provider" id="provider"></select>
|
2023-10-06 18:52:17 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-13 14:37:36 +00:00
|
|
|
<div class="field">
|
|
|
|
<input type="checkbox" id="switch" />
|
|
|
|
<label for="switch"></label>
|
|
|
|
<span class="about">Web Access</span>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<input type="checkbox" id="patch" />
|
|
|
|
<label for="patch" title="Works only with Bing and some other providers"></label>
|
|
|
|
<span class="about">Image Generator</span>
|
|
|
|
</div>
|
2023-10-06 18:52:17 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-10-09 22:47:58 +00:00
|
|
|
</div>
|
2023-10-06 18:52:17 +00:00
|
|
|
<div class="mobile-sidebar">
|
|
|
|
<i class="fa-solid fa-bars"></i>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
</script>
|
2023-10-09 22:47:58 +00:00
|
|
|
</body>
|
|
|
|
|
2023-10-28 15:58:36 +00:00
|
|
|
</html>
|