mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2025-09-11 22:30:41 +03:00
155 lines
7.0 KiB
HTML
155 lines
7.0 KiB
HTML
<!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://chat.acy.dev">
|
|
<link rel="stylesheet" href="{{chat_path}}/assets/css/style.css">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{chat_path}}/assets/img/apple-touch-icon.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{chat_path}}/assets/img/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{chat_path}}/assets/img/favicon-16x16.png">
|
|
<link rel="manifest" href="{{chat_path}}/assets/img/site.webmanifest">
|
|
<script src="{{chat_path}}/assets/js/icons.js"></script>
|
|
<script src="{{chat_path}}/assets/js/chat.js" defer></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/markdown-it@latest/dist/markdown-it.min.js"></script>
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/styles/base16/dracula.min.css">
|
|
<script>
|
|
const user_image = `<img src="{{chat_path}}/assets/img/user.png" alt="User Avatar">`;
|
|
const gpt_image = `<img src="{{chat_path}}/assets/img/gpt.png" alt="GPT 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="{{chat_path}}/assets/js/highlight.min.js"></script>
|
|
<script src="{{chat_path}}/assets/js/highlightjs-copy.min.js"></script>
|
|
<script>window.conversation_id = "{{chat_id}}" </script>
|
|
<title>ChatGPT</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 class="spinner"></div>
|
|
</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-github"></i>
|
|
<span class="convo-title">github: <a href="https://github.com/Balshgit/gpt_chat_bot">Balshgit</a><br>
|
|
leave a star :)
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="conversation disable-scrollbars">
|
|
<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;" oninput="resizeTextarea(this)"></textarea>
|
|
<div id="send-button">
|
|
<i class="fa-regular 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">
|
|
## for m in model_list
|
|
{% if loop.index1 == 1 %}
|
|
<option value="{{ m }}" selected>{{ m }}</option>
|
|
{% else %}
|
|
<option value="{{ m }}">{{ m }}</option>
|
|
{% endif %}
|
|
## endfor
|
|
</select>
|
|
<!-- <span class="about">Model</span> -->
|
|
</div>
|
|
<div class="field">
|
|
<select name="jailbreak" id="jailbreak">
|
|
<option value="default" selected>default</option>
|
|
</select>
|
|
</div>
|
|
|
|
<form class="color-picker" action="">
|
|
<fieldset>
|
|
<legend class="visually-hidden">Pick a color scheme</legend>
|
|
<label for="light" class="visually-hidden">Light</label>
|
|
<input type="radio" title="light" name="theme" id="light" checked>
|
|
|
|
<label for="pink" class="visually-hidden">Pink theme</label>
|
|
<input type="radio" title="pink" id="pink" name="theme">
|
|
|
|
<label for="blue" class="visually-hidden">Blue theme</label>
|
|
<input type="radio" title="blue" id="blue" name="theme">
|
|
|
|
<label for="green" class="visually-hidden">Green theme</label>
|
|
<input type="radio" title="green" id="green" name="theme">
|
|
|
|
<label for="dark" class="visually-hidden">Dark theme</label>
|
|
<input type="radio" title="dark" id="dark" name="theme">
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mobile-sidebar">
|
|
<i class="fa-solid fa-bars"></i>
|
|
</div>
|
|
</body>
|
|
</html>
|