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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
|
|
|
| 26 |
|
| 27 |
## Creating Human Advance AI
|
| 28 |
Success is a game of winners.
|
|
|
|
| 22 |
library_name: adapter-transformers
|
| 23 |
---
|
| 24 |
|
| 25 |
+
``html
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
<!DOCTYPE html>
|
| 29 |
+
<html lang="en">
|
| 30 |
+
<head>
|
| 31 |
+
<meta charset="UTF-8">
|
| 32 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 33 |
+
<title>LCARS Multimodal Chat Agent</title>
|
| 34 |
+
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap" rel="stylesheet">
|
| 35 |
+
<style>
|
| 36 |
+
* {
|
| 37 |
+
margin: 0;
|
| 38 |
+
padding: 0;
|
| 39 |
+
box-sizing: border-box;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
body {
|
| 43 |
+
font-family: 'Orbitron', monospace;
|
| 44 |
+
background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
|
| 45 |
+
color: #ff9900;
|
| 46 |
+
min-height: 100vh;
|
| 47 |
+
overflow-x: hidden;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.lcars-container {
|
| 51 |
+
display: grid;
|
| 52 |
+
grid-template-areas:
|
| 53 |
+
"header header header"
|
| 54 |
+
"left-panel main-content right-panel"
|
| 55 |
+
"bottom-left bottom-center bottom-right";
|
| 56 |
+
grid-template-rows: 80px 1fr 60px;
|
| 57 |
+
grid-template-columns: 200px 1fr 200px;
|
| 58 |
+
height: 100vh;
|
| 59 |
+
gap: 8px;
|
| 60 |
+
padding: 8px;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.lcars-panel {
|
| 64 |
+
background: linear-gradient(45deg, #336699, #4488bb);
|
| 65 |
+
border-radius: 20px;
|
| 66 |
+
position: relative;
|
| 67 |
+
overflow: hidden;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.lcars-panel::before {
|
| 71 |
+
content: '';
|
| 72 |
+
position: absolute;
|
| 73 |
+
top: 0;
|
| 74 |
+
left: 0;
|
| 75 |
+
right: 0;
|
| 76 |
+
bottom: 0;
|
| 77 |
+
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
|
| 78 |
+
animation: shimmer 3s infinite;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
@keyframes shimmer {
|
| 82 |
+
0% { transform: translateX(-100%); }
|
| 83 |
+
100% { transform: translateX(100%); }
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.header {
|
| 87 |
+
grid-area: header;
|
| 88 |
+
background: linear-gradient(90deg, #ff6600, #ff9900);
|
| 89 |
+
display: flex;
|
| 90 |
+
align-items: center;
|
| 91 |
+
padding: 0 30px;
|
| 92 |
+
border-radius: 0 0 40px 40px;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
.header h1 {
|
| 96 |
+
color: #000;
|
| 97 |
+
font-weight: 900;
|
| 98 |
+
font-size: 1.8rem;
|
| 99 |
+
text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.left-panel {
|
| 103 |
+
grid-area: left-panel;
|
| 104 |
+
background: linear-gradient(180deg, #cc3366, #ff3366);
|
| 105 |
+
border-radius: 0 40px 40px 0;
|
| 106 |
+
padding: 20px;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
.right-panel {
|
| 110 |
+
grid-area: right-panel;
|
| 111 |
+
background: linear-gradient(180deg, #6633cc, #9933ff);
|
| 112 |
+
border-radius: 40px 0 0 40px;
|
| 113 |
+
padding: 20px;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
.main-content {
|
| 117 |
+
grid-area: main-content;
|
| 118 |
+
background: rgba(0, 0, 0, 0.8);
|
| 119 |
+
border: 2px solid #ff9900;
|
| 120 |
+
border-radius: 20px;
|
| 121 |
+
padding: 20px;
|
| 122 |
+
display: flex;
|
| 123 |
+
flex-direction: column;
|
| 124 |
+
gap: 15px;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
.bottom-left {
|
| 128 |
+
grid-area: bottom-left;
|
| 129 |
+
background: linear-gradient(90deg, #00ccff, #0099cc);
|
| 130 |
+
border-radius: 40px 40px 0 0;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
.bottom-center {
|
| 134 |
+
grid-area: bottom-center;
|
| 135 |
+
background: linear-gradient(90deg, #00ff66, #00cc44);
|
| 136 |
+
border-radius: 40px 40px 40px 40px;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
.bottom-right {
|
| 140 |
+
grid-area: bottom-right;
|
| 141 |
+
background: linear-gradient(90deg, #ffcc00, #ff9900);
|
| 142 |
+
border-radius: 40px 40px 0 0;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
.chat-container {
|
| 146 |
+
flex: 1;
|
| 147 |
+
display: flex;
|
| 148 |
+
flex-direction: column;
|
| 149 |
+
gap: 15px;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
.message-area {
|
| 153 |
+
flex: 1;
|
| 154 |
+
background: rgba(0, 20, 40, 0.9);
|
| 155 |
+
border: 1px solid #336699;
|
| 156 |
+
border-radius: 15px;
|
| 157 |
+
padding: 15px;
|
| 158 |
+
overflow-y: auto;
|
| 159 |
+
min-height: 300px;
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
.message {
|
| 163 |
+
margin-bottom: 15px;
|
| 164 |
+
padding: 10px;
|
| 165 |
+
border-radius: 10px;
|
| 166 |
+
animation: slideIn 0.3s ease-out;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
@keyframes slideIn {
|
| 170 |
+
from { opacity: 0; transform: translateY(20px); }
|
| 171 |
+
to { opacity: 1; transform: translateY(0); }
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
.user-message {
|
| 175 |
+
background: linear-gradient(135deg, #ff6600, #ff9900);
|
| 176 |
+
color: #000;
|
| 177 |
+
margin-left: 50px;
|
| 178 |
+
border-radius: 15px 15px 5px 15px;
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
.assistant-message {
|
| 182 |
+
background: linear-gradient(135deg, #336699, #4488bb);
|
| 183 |
+
color: #fff;
|
| 184 |
+
margin-right: 50px;
|
| 185 |
+
border-radius: 15px 15px 15px 5px;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
.thinking-message {
|
| 189 |
+
background: linear-gradient(135deg, #cc3366, #ff3366);
|
| 190 |
+
color: #fff;
|
| 191 |
+
margin-right: 100px;
|
| 192 |
+
border-radius: 10px;
|
| 193 |
+
font-style: italic;
|
| 194 |
+
font-size: 0.9em;
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
.input-section {
|
| 198 |
+
background: rgba(0, 30, 60, 0.9);
|
| 199 |
+
border: 1px solid #ff9900;
|
| 200 |
+
border-radius: 15px;
|
| 201 |
+
padding: 15px;
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
.input-row {
|
| 205 |
+
display: flex;
|
| 206 |
+
gap: 10px;
|
| 207 |
+
align-items: center;
|
| 208 |
+
margin-bottom: 10px;
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
.lcars-input {
|
| 212 |
+
flex: 1;
|
| 213 |
+
background: rgba(0, 0, 0, 0.8);
|
| 214 |
+
border: 1px solid #ff9900;
|
| 215 |
+
border-radius: 10px;
|
| 216 |
+
padding: 12px;
|
| 217 |
+
color: #ff9900;
|
| 218 |
+
font-family: 'Orbitron', monospace;
|
| 219 |
+
font-size: 14px;
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
.lcars-input:focus {
|
| 223 |
+
outline: none;
|
| 224 |
+
border-color: #ffcc00;
|
| 225 |
+
box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
.lcars-button {
|
| 229 |
+
background: linear-gradient(45deg, #ff6600, #ff9900);
|
| 230 |
+
border: none;
|
| 231 |
+
border-radius: 20px;
|
| 232 |
+
padding: 12px 25px;
|
| 233 |
+
color: #000;
|
| 234 |
+
font-family: 'Orbitron', monospace;
|
| 235 |
+
font-weight: 700;
|
| 236 |
+
cursor: pointer;
|
| 237 |
+
transition: all 0.3s;
|
| 238 |
+
text-transform: uppercase;
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
.lcars-button:hover {
|
| 242 |
+
background: linear-gradient(45deg, #ff9900, #ffcc00);
|
| 243 |
+
transform: translateY(-2px);
|
| 244 |
+
box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
+
.file-input {
|
| 248 |
+
display: none;
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
.file-label {
|
| 252 |
+
background: linear-gradient(45deg, #336699, #4488bb);
|
| 253 |
+
border-radius: 15px;
|
| 254 |
+
padding: 8px 15px;
|
| 255 |
+
color: #fff;
|
| 256 |
+
cursor: pointer;
|
| 257 |
+
font-size: 12px;
|
| 258 |
+
transition: all 0.3s;
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
.file-label:hover {
|
| 262 |
+
background: linear-gradient(45deg, #4488bb, #66aadd);
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
.settings-grid {
|
| 266 |
+
display: grid;
|
| 267 |
+
grid-template-columns: 1fr 1fr;
|
| 268 |
+
gap: 10px;
|
| 269 |
+
margin-top: 15px;
|
| 270 |
+
}
|
| 271 |
+
|
| 272 |
+
.settings-row label {
|
| 273 |
+
font-size: 12px;
|
| 274 |
+
color: #66aadd;
|
| 275 |
+
min-width: 80px;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
.settings-input {
|
| 279 |
+
background: rgba(0, 0, 0, 0.6);
|
| 280 |
+
border: 1px solid #66aadd;
|
| 281 |
+
border-radius: 5px;
|
| 282 |
+
padding: 5px 10px;
|
| 283 |
+
color: #66aadd;
|
| 284 |
+
font-family: 'Orbitron', monospace;
|
| 285 |
+
font-size: 12px;
|
| 286 |
+
flex: 1;
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
.status-bar {
|
| 290 |
+
display: flex;
|
| 291 |
+
justify-content: space-between;
|
| 292 |
+
align-items: center;
|
| 293 |
+
padding: 0 20px;
|
| 294 |
+
background: rgba(0, 0, 0, 0.8);
|
| 295 |
+
border-top: 1px solid #ff9900;
|
| 296 |
+
height: 40px;
|
| 297 |
+
font-size: 12px;
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
.status-indicator {
|
| 301 |
+
display: flex;
|
| 302 |
+
align-items: center;
|
| 303 |
+
gap: 5px;
|
| 304 |
+
}
|
| 305 |
+
|
| 306 |
+
.status-dot {
|
| 307 |
+
width: 8px;
|
| 308 |
+
height: 8px;
|
| 309 |
+
border-radius: 50%;
|
| 310 |
+
background: #00ff66;
|
| 311 |
+
animation: pulse 2s infinite;
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
@keyframes pulse {
|
| 315 |
+
0%, 100% { opacity: 1; }
|
| 316 |
+
50% { opacity: 0.5; }
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
.side-button {
|
| 320 |
+
width: 100%;
|
| 321 |
+
background: rgba(255, 255, 255, 0.1);
|
| 322 |
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
| 323 |
+
border-radius: 10px;
|
| 324 |
+
padding: 10px;
|
| 325 |
+
color: #fff;
|
| 326 |
+
font-family: 'Orbitron', monospace;
|
| 327 |
+
font-size: 11px;
|
| 328 |
+
cursor: pointer;
|
| 329 |
+
margin-bottom: 10px;
|
| 330 |
+
transition: all 0.3s;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
.side-button:hover {
|
| 334 |
+
background: rgba(255, 255, 255, 0.2);
|
| 335 |
+
transform: scale(1.05);
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
+
.session-info {
|
| 339 |
+
font-size: 10px;
|
| 340 |
+
color: rgba(255, 255, 255, 0.7);
|
| 341 |
+
margin-top: 10px;
|
| 342 |
+
}
|
| 343 |
+
|
| 344 |
+
@media (max-width: 1200px) {
|
| 345 |
+
.lcars-container {
|
| 346 |
+
grid-template-areas:
|
| 347 |
+
"header header header"
|
| 348 |
+
"main-content main-content main-content"
|
| 349 |
+
"bottom-left bottom-center bottom-right";
|
| 350 |
+
grid-template-columns: 1fr;
|
| 351 |
+
}
|
| 352 |
+
.left-panel, .right-panel { display: none; }
|
| 353 |
+
}
|
| 354 |
+
</style>
|
| 355 |
+
</head>
|
| 356 |
+
<body>
|
| 357 |
+
<div class="lcars-container">
|
| 358 |
+
<div class="header">
|
| 359 |
+
<h1>🧠MULTIMODAL CHAT AGENT - LCARS INTERFACE</h1>
|
| 360 |
+
</div>
|
| 361 |
+
|
| 362 |
+
<div class="left-panel lcars-panel">
|
| 363 |
+
<div class="side-controls">
|
| 364 |
+
<button class="side-button" onclick="saveSession()">SAVE SESSION</button>
|
| 365 |
+
<button class="side-button" onclick="document.getElementById('load-session').click()">LOAD SESSION</button>
|
| 366 |
+
<button class="side-button" onclick="createDataset()">CREATE DATASET</button>
|
| 367 |
+
<button class="side-button" onclick="clearChat()">CLEAR CHAT</button>
|
| 368 |
+
<div class="session-info">
|
| 369 |
+
<div>SESSION: ACTIVE</div>
|
| 370 |
+
<div>MESSAGES: <span id="message-count">0</span></div>
|
| 371 |
+
</div>
|
| 372 |
+
</div>
|
| 373 |
+
</div>
|
| 374 |
+
|
| 375 |
+
<div class="main-content">
|
| 376 |
+
<div class="chat-container">
|
| 377 |
+
<div class="message-area" id="messages">
|
| 378 |
+
<div class="message assistant-message">
|
| 379 |
+
<strong>SYSTEM:</strong> LCARS Multimodal Chat Agent initialized. Ready for communication.
|
| 380 |
+
</div>
|
| 381 |
+
</div>
|
| 382 |
+
|
| 383 |
+
<div class="input-section">
|
| 384 |
+
<div class="input-row">
|
| 385 |
+
<input type="text" class="lcars-input" id="user-input" placeholder="Enter your message..." />
|
| 386 |
+
<button class="lcars-button" onclick="sendMessage()">TRANSMIT</button>
|
| 387 |
+
</div>
|
| 388 |
+
<div class="input-row">
|
| 389 |
+
<input type="file" id="image-input" class="file-input" accept=".png,.jpg,.jpeg" onchange="handleFileSelect(this, 'image')" />
|
| 390 |
+
<label for="image-input" class="file-label">📷 IMAGE</label>
|
| 391 |
+
|
| 392 |
+
<input type="file" id="file-input" class="file-input" accept=".py,.txt,.md,.json,.csv" onchange="handleFileSelect(this, 'file')" />
|
| 393 |
+
<label for="file-input" class="file-label">📄 FILE</label>
|
| 394 |
+
|
| 395 |
+
<span id="file-status"></span>
|
| 396 |
+
</div>
|
| 397 |
+
|
| 398 |
+
<div class="settings-grid">
|
| 399 |
+
<div class="settings-row">
|
| 400 |
+
<label>API:</label>
|
| 401 |
+
<input type="text" class="settings-input" id="api-key" value="not-needed" />
|
| 402 |
+
</div>
|
| 403 |
+
<div class="settings-row">
|
| 404 |
+
<label>URL:</label>
|
| 405 |
+
<input type="text" class="settings-input" id="base-url" value="http://localhost:1234/v1" />
|
| 406 |
+
</div>
|
| 407 |
+
<div class="settings-row">
|
| 408 |
+
<label>MODEL:</label>
|
| 409 |
+
<input type="text" class="settings-input" id="model" value="qwen2-vl-2b-instruct" />
|
| 410 |
+
</div>
|
| 411 |
+
<div class="settings-row">
|
| 412 |
+
<label>TEMP:</label>
|
| 413 |
+
<input type="range" class="settings-input" id="temperature" min="0" max="1" step="0.1" value="0.7" oninput="document.getElementById('temp-display').textContent=this.value" />
|
| 414 |
+
<span id="temp-display">0.7</span>
|
| 415 |
+
</div>
|
| 416 |
+
</div>
|
| 417 |
+
</div>
|
| 418 |
+
</div>
|
| 419 |
+
|
| 420 |
+
<div class="status-bar">
|
| 421 |
+
<div class="status-indicator">
|
| 422 |
+
<div class="status-dot"></div>
|
| 423 |
+
<span>SYSTEM ONLINE</span>
|
| 424 |
+
</div>
|
| 425 |
+
<div>STARDATE: <span id="stardate"></span></div>
|
| 426 |
+
</div>
|
| 427 |
+
</div>
|
| 428 |
+
|
| 429 |
+
<div class="right-panel lcars-panel">
|
| 430 |
+
<div class="side-controls">
|
| 431 |
+
<button class="side-button" onclick="toggleSettings()">SETTINGS</button>
|
| 432 |
+
<button class="side-button" onclick="showHelp()">HELP</button>
|
| 433 |
+
<button class="side-button" onclick="showStats()">STATISTICS</button>
|
| 434 |
+
<button class="side-button" onclick="exportChat()">EXPORT</button>
|
| 435 |
+
<div class="session-info">
|
| 436 |
+
<div>TEMP: <span id="temp-display">0.7</span></div>
|
| 437 |
+
<div>TOKENS: <span id="token-count">512</span></div>
|
| 438 |
+
<div>STATUS: READY</div>
|
| 439 |
+
</div>
|
| 440 |
+
</div>
|
| 441 |
+
</div>
|
| 442 |
+
|
| 443 |
+
<div class="bottom-left lcars-panel"></div>
|
| 444 |
+
<div class="bottom-center lcars-panel"></div>
|
| 445 |
+
<div class="bottom-right lcars-panel"></div>
|
| 446 |
+
</div>
|
| 447 |
+
|
| 448 |
+
<input type="file" id="load-session" class="file-input" accept=".json" onchange="loadSession(this)" />
|
| 449 |
+
|
| 450 |
+
<script>
|
| 451 |
+
let chatHistory = [];
|
| 452 |
+
let currentImage = null;
|
| 453 |
+
let currentFile = null;
|
| 454 |
+
let messageCount = 0;
|
| 455 |
+
|
| 456 |
+
document.addEventListener('DOMContentLoaded', function () {
|
| 457 |
+
updateStardate();
|
| 458 |
+
setInterval(updateStardate, 1000);
|
| 459 |
+
|
| 460 |
+
document.getElementById('user-input').addEventListener('keypress', e => {
|
| 461 |
+
if (e.key === 'Enter') sendMessage();
|
| 462 |
+
});
|
| 463 |
+
});
|
| 464 |
+
|
| 465 |
+
function updateStardate() {
|
| 466 |
+
const now = new Date();
|
| 467 |
+
const stardate = (now.getFullYear() - 2000) * 1000 + (now.getMonth() + 1) * 30 + now.getDate() + (now.getHours() / 24);
|
| 468 |
+
document.getElementById('stardate').textContent = stardate.toFixed(1);
|
| 469 |
+
}
|
| 470 |
+
|
| 471 |
+
function addMessage(content, type, isThinking = false) {
|
| 472 |
+
const messagesArea = document.getElementById('messages');
|
| 473 |
+
const messageDiv = document.createElement('div');
|
| 474 |
+
messageDiv.className = `message ${type}-message ${isThinking ? 'thinking-message' : ''}`;
|
| 475 |
+
|
| 476 |
+
if (isThinking) {
|
| 477 |
+
messageDiv.innerHTML = `<strong>PROCESSING:</strong> ${content}`;
|
| 478 |
+
} else if (type === 'user') {
|
| 479 |
+
messageDiv.innerHTML = `<strong>USER:</strong> ${content}`;
|
| 480 |
+
} else {
|
| 481 |
+
messageDiv.innerHTML = `<strong>ASSISTANT:</strong> ${content}`;
|
| 482 |
+
}
|
| 483 |
+
|
| 484 |
+
messagesArea.appendChild(messageDiv);
|
| 485 |
+
messagesArea.scrollTop = messagesArea.scrollHeight;
|
| 486 |
+
|
| 487 |
+
if (!isThinking) {
|
| 488 |
+
messageCount++;
|
| 489 |
+
document.getElementById('message-count').textContent = messageCount;
|
| 490 |
+
}
|
| 491 |
+
}
|
| 492 |
+
|
| 493 |
+
async function sendMessage() {
|
| 494 |
+
const input = document.getElementById('user-input');
|
| 495 |
+
const message = input.value.trim();
|
| 496 |
+
if (!message && !currentImage && !currentFile) return;
|
| 497 |
+
|
| 498 |
+
addMessage(message + (currentImage ? ' [📷]' : '') + (currentFile ? ' [📄]' : ''), 'user');
|
| 499 |
+
input.value = '';
|
| 500 |
+
addMessage('Analyzing input and generating response...', 'assistant', true);
|
| 501 |
+
|
| 502 |
+
setTimeout(() => {
|
| 503 |
+
const thinkingMsg = document.querySelector('.thinking-message');
|
| 504 |
+
if (thinkingMsg) thinkingMsg.remove();
|
| 505 |
+
|
| 506 |
+
let response = "I've processed your input. ";
|
| 507 |
+
if (message.includes("hello")) response = "Greetings, Captain. How may I assist you today?";
|
| 508 |
+
else if (currentImage) response = "Image analysis complete. Visual data is coherent and within expected parameters.";
|
| 509 |
+
else if (currentFile) response = "File processed. Data structure is intact. Awaiting further instructions.";
|
| 510 |
+
else response += "Response generated successfully.";
|
| 511 |
+
|
| 512 |
+
addMessage(response, 'assistant');
|
| 513 |
+
chatHistory.push({ role: 'user', content: message, image: currentImage, file: currentFile });
|
| 514 |
+
chatHistory.push({ role: 'assistant', content: response });
|
| 515 |
+
|
| 516 |
+
currentImage = currentFile = null;
|
| 517 |
+
document.getElementById('file-status').textContent = '';
|
| 518 |
+
}, 1500);
|
| 519 |
+
}
|
| 520 |
+
|
| 521 |
+
function handleFileSelect(input, type) {
|
| 522 |
+
const file = input.files[0];
|
| 523 |
+
if (file) {
|
| 524 |
+
const reader = new FileReader();
|
| 525 |
+
reader.onload = function (e) {
|
| 526 |
+
if (type === 'image') {
|
| 527 |
+
currentImage = e.target.result.split(',')[1];
|
| 528 |
+
document.getElementById('file-status').textContent = '📷 Image loaded';
|
| 529 |
+
} else {
|
| 530 |
+
currentFile = e.target.result;
|
| 531 |
+
document.getElementById('file-status').textContent = '📄 File loaded';
|
| 532 |
+
}
|
| 533 |
+
};
|
| 534 |
+
type === 'image' ? reader.readAsDataURL(file) : reader.readAsText(file);
|
| 535 |
+
}
|
| 536 |
+
}
|
| 537 |
+
|
| 538 |
+
function saveSession() {
|
| 539 |
+
const data = {
|
| 540 |
+
timestamp: new Date().toISOString(),
|
| 541 |
+
chatHistory,
|
| 542 |
+
settings: {
|
| 543 |
+
apiKey: document.getElementById('api-key').value,
|
| 544 |
+
baseUrl: document.getElementById('base-url').value,
|
| 545 |
+
model: document.getElementById('model').value,
|
| 546 |
+
temperature: document.getElementById('temperature').value
|
| 547 |
+
}
|
| 548 |
+
};
|
| 549 |
+
const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' });
|
| 550 |
+
const url = URL.createObjectURL(blob);
|
| 551 |
+
const a = document.createElement('a');
|
| 552 |
+
a.href = url;
|
| 553 |
+
a.download = `lcars_session_${new Date().toISOString().split('T')[0]}.json`;
|
| 554 |
+
a.click();
|
| 555 |
+
URL.revokeObjectURL(url);
|
| 556 |
+
addMessage("Session saved.", "assistant");
|
| 557 |
+
}
|
| 558 |
+
|
| 559 |
+
function loadSession(input) {
|
| 560 |
+
const file = input.files[0];
|
| 561 |
+
if (file) {
|
| 562 |
+
const reader = new FileReader();
|
| 563 |
+
reader.onload = function (e) {
|
| 564 |
+
try {
|
| 565 |
+
const data = JSON.parse(e.target.result);
|
| 566 |
+
chatHistory = data.chatHistory || [];
|
| 567 |
+
document.getElementById('messages').innerHTML = '';
|
| 568 |
+
addMessage("Session restored from backup.", "assistant");
|
| 569 |
+
} catch (err) {
|
| 570 |
+
addMessage("Error loading session.", "assistant");
|
| 571 |
+
}
|
| 572 |
+
};
|
| 573 |
+
reader.readAsText(file);
|
| 574 |
+
}
|
| 575 |
+
}
|
| 576 |
+
|
| 577 |
+
function createDataset() {
|
| 578 |
+
if (chatHistory.length === 0) {
|
| 579 |
+
addMessage("No chat history to create dataset.", "assistant");
|
| 580 |
+
return;
|
| 581 |
+
}
|
| 582 |
+
const dataset = [chatHistory];
|
| 583 |
+
const blob = new Blob([JSON.stringify(dataset, null, 2)], { type: 'application/json' });
|
| 584 |
+
const url = URL.createObjectURL(blob);
|
| 585 |
+
const a = document.createElement('a');
|
| 586 |
+
a.href = url;
|
| 587 |
+
a.download = `dataset_${new Date().toISOString().split('T')[0]}.json`;
|
| 588 |
+
a.click();
|
| 589 |
+
URL.revokeObjectURL(url);
|
| 590 |
+
addMessage("Training dataset created.", "assistant");
|
| 591 |
+
}
|
| 592 |
+
|
| 593 |
+
function clearChat() {
|
| 594 |
+
document.getElementById('messages').innerHTML = '';
|
| 595 |
+
chatHistory = [];
|
| 596 |
+
messageCount = 0;
|
| 597 |
+
document.getElementById('message-count').textContent = '0';
|
| 598 |
+
addMessage("Chat cleared.", "assistant");
|
| 599 |
+
}
|
| 600 |
+
|
| 601 |
+
function exportChat() {
|
| 602 |
+
const text = chatHistory.map(m => `${m.role.toUpperCase()}: ${m.content}`).join('\n');
|
| 603 |
+
const blob = new Blob([text], { type: 'text/plain' });
|
| 604 |
+
const url = URL.createObjectURL(blob);
|
| 605 |
+
const a = document.createElement('a');
|
| 606 |
+
a.href = url;
|
| 607 |
+
a.download = 'chat_export.txt';
|
| 608 |
+
a.click();
|
| 609 |
+
URL.revokeObjectURL(url);
|
| 610 |
+
}
|
| 611 |
+
|
| 612 |
+
function showHelp() { addMessage("Help: Type a message, attach files, and press TRANSMIT.", "assistant"); }
|
| 613 |
+
function showStats() { addMessage(`Messages: ${messageCount}`, "assistant"); }
|
| 614 |
+
function toggleSettings() { addMessage("Settings panel toggled.", "assistant"); }
|
| 615 |
+
</script>
|
| 616 |
+
</body>
|
| 617 |
+
</html>
|
| 618 |
|
| 619 |
+
```
|
| 620 |
|
| 621 |
## Creating Human Advance AI
|
| 622 |
Success is a game of winners.
|