-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
117 lines (112 loc) · 4.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AI Chat Interface</title>
<link rel="icon" href="./icon-192x192.png" type="image/x-icon" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@twind/[email protected]/twind.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@twind/[email protected]/preset-autoprefix.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@twind/[email protected]/preset-tailwind.umd.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lucide/0.263.1/lucide.min.js"></script>
<link rel="stylesheet" href="./styles.css" />
<link rel="manifest" href="manifest.json" />
<!-- SEO Metadata -->
<meta
name="description"
content="AI Chat Interface - An AI-powered chat interface that uses OpenAI's GPT models to provide intelligent responses."
/>
<meta
name="keywords"
content="AI, Chat, GPT, OpenAI, AI Chat Interface, AI-powered chat"
/>
<meta name="author" content="Mishal" />
<meta name="robots" content="index, follow" />
<!-- Open Graph Metadata for Link Previews -->
<meta property="og:title" content="AI Chat Interface" />
<meta
property="og:description"
content="An AI-powered chat interface that uses OpenAI's GPT models to provide intelligent responses."
/>
<meta
property="og:image"
content="https://chiua.vercel.app/icon-192x192.png"
/>
<meta property="og:url" content="https://chiua.vercel.app" />
<meta property="og:type" content="website" />
<!-- Twitter Card Metadata -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="AI Chat Interface" />
<meta
name="twitter:description"
content="An AI-powered chat interface that uses OpenAI's GPT models to provide intelligent responses."
/>
<meta
name="twitter:image"
content="https://chiua.vercel.app/icon-192x192.png"
/>
<meta name="twitter:site" content="@mishalabdula" />
</head>
<body>
<div class="theme-switch-wrapper">
<label class="theme-switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider round">
<i data-lucide="sun" class="sun-icon"></i>
<i data-lucide="moon" class="moon-icon"></i>
</div>
</label>
</div>
<div class="sidebar">
<h1>AI Chat</h1>
<label for="api-key">API Key:</label>
<input type="password" id="api-key" placeholder="Enter your API key" />
<label for="deepgram-api-key">Deepgram API Key:</label>
<input
type="password"
id="deepgram-api-key"
placeholder="Enter your Deepgram API key"
/>
<label for="model-select">Model:</label>
<select id="model-select">
<option value="gpt-4o">GPT-4o</option>
<option value="gpt-3.5-turbo">GPT-3.5 Turbo</option>
<option value="gpt-4-turbo">GPT-4 turbo</option>
</select>
<button class="new-chat-btn">New Chat</button>
<h2>Saved Chats</h2>
<div id="saved-chats-list"></div>
<button id="save-button">Save Current Chat</button>
<h2>GitHub Settings</h2>
<label for="github-token-input">GitHub Token:</label>
<input type="password" id="github-token-input" />
<label for="github-repo-input">GitHub Repo:</label>
<input type="text" id="github-repo-input" placeholder="username/repo" />
<button id="push-to-github-button">Push to GitHub</button>
</div>
<div class="main-content">
<div class="chat-container" id="chat-history"></div>
<div class="input-container">
<textarea
id="user-input"
placeholder="Type your message here..."
></textarea>
<div id="button-container">
<button id="send-button">Send</button>
<button id="mic-button">Mic</button>
</div>
</div>
</div>
<script src="./app.js"></script>
</body>
</html>