Spaces:
Running
Running
Add 2 files
Browse files- index.html +238 -18
- prompts.txt +3 -1
index.html
CHANGED
|
@@ -352,6 +352,83 @@
|
|
| 352 |
font-weight: bold;
|
| 353 |
margin-left: 5px;
|
| 354 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 355 |
</style>
|
| 356 |
</head>
|
| 357 |
<body class="apocalypse-bg text-gray-100 min-h-screen">
|
|
@@ -380,6 +457,17 @@
|
|
| 380 |
</div>
|
| 381 |
</div>
|
| 382 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 383 |
<div class="container mx-auto px-4 py-8">
|
| 384 |
<h1 class="text-4xl font-bold text-center mb-8 gold-text">
|
| 385 |
<i class="fas fa-robot mr-2"></i>Apocalypse Profit Miners AI
|
|
@@ -679,10 +767,18 @@
|
|
| 679 |
const dissertationResultsContent = document.getElementById('dissertationResultsContent');
|
| 680 |
const toggleDissertationResults = document.getElementById('toggleDissertationResults');
|
| 681 |
const clearDissertationResults = document.getElementById('clearDissertationResults');
|
|
|
|
|
|
|
|
|
|
| 682 |
|
| 683 |
// Initialize charts
|
| 684 |
initCharts();
|
| 685 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 686 |
// Toggle dissertation results visibility
|
| 687 |
toggleDissertationResults.addEventListener('click', function() {
|
| 688 |
const isVisible = dissertationResults.style.display === 'block';
|
|
@@ -942,11 +1038,135 @@
|
|
| 942 |
}
|
| 943 |
];
|
| 944 |
|
| 945 |
-
//
|
| 946 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 947 |
const endpoint = "https://ainize.ai/llama3.2-90b-api";
|
|
|
|
|
|
|
|
|
|
|
|
|
| 948 |
|
| 949 |
try {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 950 |
const response = await fetch(endpoint, {
|
| 951 |
method: "POST",
|
| 952 |
headers: {
|
|
@@ -974,8 +1194,8 @@
|
|
| 974 |
}
|
| 975 |
}
|
| 976 |
|
| 977 |
-
// AI Analysis Functions using LLaMA 3.2 90B
|
| 978 |
-
async function generateAIAnalysis(prompt, personality) {
|
| 979 |
// Show typing indicator
|
| 980 |
showTyping(personality);
|
| 981 |
|
|
@@ -985,8 +1205,8 @@
|
|
| 985 |
Include specific recommendations, risk assessments, and potential ROI calculations.
|
| 986 |
Format your response with clear sections and bullet points where appropriate.`;
|
| 987 |
|
| 988 |
-
// Query LLaMA 3.2 90B
|
| 989 |
-
const analysis = await queryLLaMA(analysisPrompt, personality);
|
| 990 |
|
| 991 |
// Create task container
|
| 992 |
const taskId = "task-" + Date.now();
|
|
@@ -1019,7 +1239,7 @@
|
|
| 1019 |
Highlight emerging opportunities, risk factors, and recommended actions.
|
| 1020 |
Format as a professional market intelligence brief with clear sections.`;
|
| 1021 |
|
| 1022 |
-
const marketInsights = await queryLLaMA(insightsPrompt, crew[0]); // Use Visionary as default
|
| 1023 |
aiMarketInsights.textContent = marketInsights;
|
| 1024 |
}
|
| 1025 |
|
|
@@ -1030,7 +1250,7 @@
|
|
| 1030 |
};
|
| 1031 |
}
|
| 1032 |
|
| 1033 |
-
// Generate marketing plan using LLaMA 3.2 90B
|
| 1034 |
async function generateMarketingPlan(prompt) {
|
| 1035 |
// Show collective typing
|
| 1036 |
typingIndicator.className = `flex items-center space-x-1 mb-2 pl-2`;
|
|
@@ -1053,8 +1273,8 @@
|
|
| 1053 |
|
| 1054 |
Format with clear headings and bullet points. Include specific numbers and calculations where possible.`;
|
| 1055 |
|
| 1056 |
-
// Query LLaMA 3.2 90B
|
| 1057 |
-
const planText = await queryLLaMA(planPrompt, crew[1]); // Use Strategist as default
|
| 1058 |
|
| 1059 |
// Create plan container
|
| 1060 |
const planId = "plan-" + Date.now();
|
|
@@ -1078,17 +1298,17 @@
|
|
| 1078 |
chatLog.appendChild(planDiv);
|
| 1079 |
chatLog.scrollTop = chatLog.scrollHeight;
|
| 1080 |
|
| 1081 |
-
// Now have each personality add their specialized analysis
|
| 1082 |
const analyses = [];
|
| 1083 |
for (const member of crew) {
|
| 1084 |
-
const analysis = await generateAIAnalysis(prompt, member);
|
| 1085 |
analyses.push(analysis);
|
| 1086 |
}
|
| 1087 |
|
| 1088 |
return analyses;
|
| 1089 |
}
|
| 1090 |
|
| 1091 |
-
// Generate dissertation from collected analyses using LLaMA 3.2 90B
|
| 1092 |
async function generateDissertation(prompt, analyses) {
|
| 1093 |
// Show dissertation agent typing
|
| 1094 |
const dissertationAgent = crew.find(m => m.name === "Dissertation");
|
|
@@ -1110,8 +1330,8 @@
|
|
| 1110 |
|
| 1111 |
Maintain academic rigor with proper citations and theoretical grounding.`;
|
| 1112 |
|
| 1113 |
-
// Query LLaMA 3.2 90B
|
| 1114 |
-
const dissertationContent = await queryLLaMA(dissertationPrompt, dissertationAgent);
|
| 1115 |
|
| 1116 |
// Create dissertation message
|
| 1117 |
const messageDiv = document.createElement('div');
|
|
@@ -1234,7 +1454,7 @@
|
|
| 1234 |
// First get all miner analyses
|
| 1235 |
const analyses = [];
|
| 1236 |
for (const member of crew) {
|
| 1237 |
-
const analysis = await generateAIAnalysis(message, member);
|
| 1238 |
analyses.push(analysis);
|
| 1239 |
}
|
| 1240 |
|
|
@@ -1243,9 +1463,9 @@
|
|
| 1243 |
return;
|
| 1244 |
}
|
| 1245 |
|
| 1246 |
-
// Otherwise, have all personalities analyze the message
|
| 1247 |
for (const member of crew) {
|
| 1248 |
-
await generateAIAnalysis(message, member);
|
| 1249 |
}
|
| 1250 |
}
|
| 1251 |
});
|
|
|
|
| 352 |
font-weight: bold;
|
| 353 |
margin-left: 5px;
|
| 354 |
}
|
| 355 |
+
|
| 356 |
+
.processing-queue {
|
| 357 |
+
position: fixed;
|
| 358 |
+
bottom: 20px;
|
| 359 |
+
right: 20px;
|
| 360 |
+
background: rgba(30, 41, 59, 0.9);
|
| 361 |
+
border: 1px solid #334155;
|
| 362 |
+
border-radius: 8px;
|
| 363 |
+
padding: 15px;
|
| 364 |
+
width: 300px;
|
| 365 |
+
z-index: 100;
|
| 366 |
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
|
| 367 |
+
}
|
| 368 |
+
|
| 369 |
+
.queue-header {
|
| 370 |
+
font-weight: bold;
|
| 371 |
+
color: #f59e0b;
|
| 372 |
+
margin-bottom: 10px;
|
| 373 |
+
display: flex;
|
| 374 |
+
justify-content: space-between;
|
| 375 |
+
align-items: center;
|
| 376 |
+
}
|
| 377 |
+
|
| 378 |
+
.queue-item {
|
| 379 |
+
padding: 5px 0;
|
| 380 |
+
border-bottom: 1px solid #334155;
|
| 381 |
+
display: flex;
|
| 382 |
+
align-items: center;
|
| 383 |
+
}
|
| 384 |
+
|
| 385 |
+
.queue-item:last-child {
|
| 386 |
+
border-bottom: none;
|
| 387 |
+
}
|
| 388 |
+
|
| 389 |
+
.queue-status {
|
| 390 |
+
width: 10px;
|
| 391 |
+
height: 10px;
|
| 392 |
+
border-radius: 50%;
|
| 393 |
+
margin-right: 8px;
|
| 394 |
+
}
|
| 395 |
+
|
| 396 |
+
.status-pending {
|
| 397 |
+
background-color: #f59e0b;
|
| 398 |
+
animation: pulse 2s infinite;
|
| 399 |
+
}
|
| 400 |
+
|
| 401 |
+
.status-processing {
|
| 402 |
+
background-color: #3b82f6;
|
| 403 |
+
animation: pulse 1s infinite;
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
.status-completed {
|
| 407 |
+
background-color: #10b981;
|
| 408 |
+
}
|
| 409 |
+
|
| 410 |
+
.status-failed {
|
| 411 |
+
background-color: #ef4444;
|
| 412 |
+
}
|
| 413 |
+
|
| 414 |
+
.queue-item-name {
|
| 415 |
+
flex-grow: 1;
|
| 416 |
+
font-size: 0.9rem;
|
| 417 |
+
}
|
| 418 |
+
|
| 419 |
+
.queue-item-time {
|
| 420 |
+
font-size: 0.8rem;
|
| 421 |
+
color: #9ca3af;
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
+
.priority-badge {
|
| 425 |
+
background-color: #ef4444;
|
| 426 |
+
color: white;
|
| 427 |
+
font-size: 0.6rem;
|
| 428 |
+
padding: 2px 4px;
|
| 429 |
+
border-radius: 4px;
|
| 430 |
+
margin-left: 5px;
|
| 431 |
+
}
|
| 432 |
</style>
|
| 433 |
</head>
|
| 434 |
<body class="apocalypse-bg text-gray-100 min-h-screen">
|
|
|
|
| 457 |
</div>
|
| 458 |
</div>
|
| 459 |
|
| 460 |
+
<!-- Processing Queue -->
|
| 461 |
+
<div class="processing-queue" id="processingQueue">
|
| 462 |
+
<div class="queue-header">
|
| 463 |
+
<span><i class="fas fa-tasks mr-2"></i>LLaMA 3.2 90B Processing Queue</span>
|
| 464 |
+
<span id="queueCount">0</span>
|
| 465 |
+
</div>
|
| 466 |
+
<div id="queueItems">
|
| 467 |
+
<!-- Queue items will be added here -->
|
| 468 |
+
</div>
|
| 469 |
+
</div>
|
| 470 |
+
|
| 471 |
<div class="container mx-auto px-4 py-8">
|
| 472 |
<h1 class="text-4xl font-bold text-center mb-8 gold-text">
|
| 473 |
<i class="fas fa-robot mr-2"></i>Apocalypse Profit Miners AI
|
|
|
|
| 767 |
const dissertationResultsContent = document.getElementById('dissertationResultsContent');
|
| 768 |
const toggleDissertationResults = document.getElementById('toggleDissertationResults');
|
| 769 |
const clearDissertationResults = document.getElementById('clearDissertationResults');
|
| 770 |
+
const processingQueue = document.getElementById('processingQueue');
|
| 771 |
+
const queueItems = document.getElementById('queueItems');
|
| 772 |
+
const queueCount = document.getElementById('queueCount');
|
| 773 |
|
| 774 |
// Initialize charts
|
| 775 |
initCharts();
|
| 776 |
|
| 777 |
+
// Processing queue management
|
| 778 |
+
let processingQueueItems = [];
|
| 779 |
+
let currentProcessingItem = null;
|
| 780 |
+
let isProcessing = false;
|
| 781 |
+
|
| 782 |
// Toggle dissertation results visibility
|
| 783 |
toggleDissertationResults.addEventListener('click', function() {
|
| 784 |
const isVisible = dissertationResults.style.display === 'block';
|
|
|
|
| 1038 |
}
|
| 1039 |
];
|
| 1040 |
|
| 1041 |
+
// Add item to processing queue
|
| 1042 |
+
function addToQueue(itemName, isPriority = false) {
|
| 1043 |
+
const queueItem = {
|
| 1044 |
+
id: Date.now(),
|
| 1045 |
+
name: itemName,
|
| 1046 |
+
status: 'pending',
|
| 1047 |
+
timestamp: new Date(),
|
| 1048 |
+
isPriority: isPriority
|
| 1049 |
+
};
|
| 1050 |
+
|
| 1051 |
+
// Add to beginning if priority, else to end
|
| 1052 |
+
if (isPriority) {
|
| 1053 |
+
processingQueueItems.unshift(queueItem);
|
| 1054 |
+
} else {
|
| 1055 |
+
processingQueueItems.push(queueItem);
|
| 1056 |
+
}
|
| 1057 |
+
|
| 1058 |
+
updateQueueDisplay();
|
| 1059 |
+
processQueue();
|
| 1060 |
+
}
|
| 1061 |
+
|
| 1062 |
+
// Update queue item status
|
| 1063 |
+
function updateQueueItemStatus(id, status) {
|
| 1064 |
+
const item = processingQueueItems.find(i => i.id === id);
|
| 1065 |
+
if (item) {
|
| 1066 |
+
item.status = status;
|
| 1067 |
+
updateQueueDisplay();
|
| 1068 |
+
}
|
| 1069 |
+
}
|
| 1070 |
+
|
| 1071 |
+
// Update queue display
|
| 1072 |
+
function updateQueueDisplay() {
|
| 1073 |
+
queueItems.innerHTML = '';
|
| 1074 |
+
queueCount.textContent = processingQueueItems.length;
|
| 1075 |
+
|
| 1076 |
+
// Sort items: processing first, then priority, then by timestamp
|
| 1077 |
+
const sortedItems = [...processingQueueItems].sort((a, b) => {
|
| 1078 |
+
if (a.status === 'processing') return -1;
|
| 1079 |
+
if (b.status === 'processing') return 1;
|
| 1080 |
+
if (a.isPriority && !b.isPriority) return -1;
|
| 1081 |
+
if (!a.isPriority && b.isPriority) return 1;
|
| 1082 |
+
return a.timestamp - b.timestamp;
|
| 1083 |
+
});
|
| 1084 |
+
|
| 1085 |
+
sortedItems.forEach(item => {
|
| 1086 |
+
const itemDiv = document.createElement('div');
|
| 1087 |
+
itemDiv.className = 'queue-item';
|
| 1088 |
+
|
| 1089 |
+
let statusClass = '';
|
| 1090 |
+
switch(item.status) {
|
| 1091 |
+
case 'pending': statusClass = 'status-pending'; break;
|
| 1092 |
+
case 'processing': statusClass = 'status-processing'; break;
|
| 1093 |
+
case 'completed': statusClass = 'status-completed'; break;
|
| 1094 |
+
case 'failed': statusClass = 'status-failed'; break;
|
| 1095 |
+
}
|
| 1096 |
+
|
| 1097 |
+
itemDiv.innerHTML = `
|
| 1098 |
+
<div class="queue-status ${statusClass}"></div>
|
| 1099 |
+
<div class="queue-item-name">
|
| 1100 |
+
${item.name}
|
| 1101 |
+
${item.isPriority ? '<span class="priority-badge">PRIORITY</span>' : ''}
|
| 1102 |
+
</div>
|
| 1103 |
+
<div class="queue-item-time">${formatTime(item.timestamp)}</div>
|
| 1104 |
+
`;
|
| 1105 |
+
|
| 1106 |
+
queueItems.appendChild(itemDiv);
|
| 1107 |
+
});
|
| 1108 |
+
}
|
| 1109 |
+
|
| 1110 |
+
// Format time for display
|
| 1111 |
+
function formatTime(date) {
|
| 1112 |
+
return date.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
|
| 1113 |
+
}
|
| 1114 |
+
|
| 1115 |
+
// Process queue items
|
| 1116 |
+
async function processQueue() {
|
| 1117 |
+
if (isProcessing || processingQueueItems.length === 0) return;
|
| 1118 |
+
|
| 1119 |
+
isProcessing = true;
|
| 1120 |
+
|
| 1121 |
+
// Find next item to process (prioritize pending priority items)
|
| 1122 |
+
let nextItem = processingQueueItems.find(item =>
|
| 1123 |
+
item.status === 'pending' && item.isPriority
|
| 1124 |
+
) || processingQueueItems.find(item =>
|
| 1125 |
+
item.status === 'pending'
|
| 1126 |
+
);
|
| 1127 |
+
|
| 1128 |
+
if (!nextItem) {
|
| 1129 |
+
isProcessing = false;
|
| 1130 |
+
return;
|
| 1131 |
+
}
|
| 1132 |
+
|
| 1133 |
+
// Mark as processing
|
| 1134 |
+
updateQueueItemStatus(nextItem.id, 'processing');
|
| 1135 |
+
currentProcessingItem = nextItem;
|
| 1136 |
+
|
| 1137 |
+
try {
|
| 1138 |
+
// Simulate processing delay (in real app, this would be the LLaMA API call)
|
| 1139 |
+
await new Promise(resolve => setTimeout(resolve, 2000));
|
| 1140 |
+
|
| 1141 |
+
// Mark as completed
|
| 1142 |
+
updateQueueItemStatus(nextItem.id, 'completed');
|
| 1143 |
+
} catch (error) {
|
| 1144 |
+
// Mark as failed
|
| 1145 |
+
updateQueueItemStatus(nextItem.id, 'failed');
|
| 1146 |
+
console.error('Processing error:', error);
|
| 1147 |
+
} finally {
|
| 1148 |
+
currentProcessingItem = null;
|
| 1149 |
+
isProcessing = false;
|
| 1150 |
+
|
| 1151 |
+
// Process next item if available
|
| 1152 |
+
setTimeout(processQueue, 500);
|
| 1153 |
+
}
|
| 1154 |
+
}
|
| 1155 |
+
|
| 1156 |
+
// Connect to Ainize LLaMA 3.2 90B API with queue management
|
| 1157 |
+
async function queryLLaMA(prompt, personality, isPriority = false) {
|
| 1158 |
const endpoint = "https://ainize.ai/llama3.2-90b-api";
|
| 1159 |
+
const taskName = `${personality.name} Analysis`;
|
| 1160 |
+
|
| 1161 |
+
// Add to processing queue
|
| 1162 |
+
addToQueue(taskName, isPriority);
|
| 1163 |
|
| 1164 |
try {
|
| 1165 |
+
// Wait for this item to reach the front of the queue
|
| 1166 |
+
while (currentProcessingItem?.id !== processingQueueItems.find(i => i.name === taskName)?.id) {
|
| 1167 |
+
await new Promise(resolve => setTimeout(resolve, 500));
|
| 1168 |
+
}
|
| 1169 |
+
|
| 1170 |
const response = await fetch(endpoint, {
|
| 1171 |
method: "POST",
|
| 1172 |
headers: {
|
|
|
|
| 1194 |
}
|
| 1195 |
}
|
| 1196 |
|
| 1197 |
+
// AI Analysis Functions using LLaMA 3.2 90B with queue management
|
| 1198 |
+
async function generateAIAnalysis(prompt, personality, isPriority = false) {
|
| 1199 |
// Show typing indicator
|
| 1200 |
showTyping(personality);
|
| 1201 |
|
|
|
|
| 1205 |
Include specific recommendations, risk assessments, and potential ROI calculations.
|
| 1206 |
Format your response with clear sections and bullet points where appropriate.`;
|
| 1207 |
|
| 1208 |
+
// Query LLaMA 3.2 90B with priority status
|
| 1209 |
+
const analysis = await queryLLaMA(analysisPrompt, personality, isPriority);
|
| 1210 |
|
| 1211 |
// Create task container
|
| 1212 |
const taskId = "task-" + Date.now();
|
|
|
|
| 1239 |
Highlight emerging opportunities, risk factors, and recommended actions.
|
| 1240 |
Format as a professional market intelligence brief with clear sections.`;
|
| 1241 |
|
| 1242 |
+
const marketInsights = await queryLLaMA(insightsPrompt, crew[0], true); // Use Visionary as default with priority
|
| 1243 |
aiMarketInsights.textContent = marketInsights;
|
| 1244 |
}
|
| 1245 |
|
|
|
|
| 1250 |
};
|
| 1251 |
}
|
| 1252 |
|
| 1253 |
+
// Generate marketing plan using LLaMA 3.2 90B with queue management
|
| 1254 |
async function generateMarketingPlan(prompt) {
|
| 1255 |
// Show collective typing
|
| 1256 |
typingIndicator.className = `flex items-center space-x-1 mb-2 pl-2`;
|
|
|
|
| 1273 |
|
| 1274 |
Format with clear headings and bullet points. Include specific numbers and calculations where possible.`;
|
| 1275 |
|
| 1276 |
+
// Query LLaMA 3.2 90B with priority
|
| 1277 |
+
const planText = await queryLLaMA(planPrompt, crew[1], true); // Use Strategist as default with priority
|
| 1278 |
|
| 1279 |
// Create plan container
|
| 1280 |
const planId = "plan-" + Date.now();
|
|
|
|
| 1298 |
chatLog.appendChild(planDiv);
|
| 1299 |
chatLog.scrollTop = chatLog.scrollHeight;
|
| 1300 |
|
| 1301 |
+
// Now have each personality add their specialized analysis (with priority)
|
| 1302 |
const analyses = [];
|
| 1303 |
for (const member of crew) {
|
| 1304 |
+
const analysis = await generateAIAnalysis(prompt, member, true);
|
| 1305 |
analyses.push(analysis);
|
| 1306 |
}
|
| 1307 |
|
| 1308 |
return analyses;
|
| 1309 |
}
|
| 1310 |
|
| 1311 |
+
// Generate dissertation from collected analyses using LLaMA 3.2 90B with queue management
|
| 1312 |
async function generateDissertation(prompt, analyses) {
|
| 1313 |
// Show dissertation agent typing
|
| 1314 |
const dissertationAgent = crew.find(m => m.name === "Dissertation");
|
|
|
|
| 1330 |
|
| 1331 |
Maintain academic rigor with proper citations and theoretical grounding.`;
|
| 1332 |
|
| 1333 |
+
// Query LLaMA 3.2 90B with priority
|
| 1334 |
+
const dissertationContent = await queryLLaMA(dissertationPrompt, dissertationAgent, true);
|
| 1335 |
|
| 1336 |
// Create dissertation message
|
| 1337 |
const messageDiv = document.createElement('div');
|
|
|
|
| 1454 |
// First get all miner analyses
|
| 1455 |
const analyses = [];
|
| 1456 |
for (const member of crew) {
|
| 1457 |
+
const analysis = await generateAIAnalysis(message, member, true); // Priority
|
| 1458 |
analyses.push(analysis);
|
| 1459 |
}
|
| 1460 |
|
|
|
|
| 1463 |
return;
|
| 1464 |
}
|
| 1465 |
|
| 1466 |
+
// Otherwise, have all personalities analyze the message (with priority)
|
| 1467 |
for (const member of crew) {
|
| 1468 |
+
await generateAIAnalysis(message, member, true);
|
| 1469 |
}
|
| 1470 |
}
|
| 1471 |
});
|
prompts.txt
CHANGED
|
@@ -1 +1,3 @@
|
|
| 1 |
-
re-design the code of the miners to use Ainize LLaMA 3.2 90B API to take overand replce all of their all of "grok" api functions now as well as the main LLM for creating all the diseratations. make sure the entire website undertands and gives and turns absolute priority and all work to "LLaMA 3.2 90B API"
|
|
|
|
|
|
|
|
|
| 1 |
+
re-design the code of the miners to use Ainize LLaMA 3.2 90B API to take overand replce all of their all of "grok" api functions now as well as the main LLM for creating all the diseratations. make sure the entire website undertands and gives and turns absolute priority and all work to "LLaMA 3.2 90B API"
|
| 2 |
+
ensure the bots all allow LLaMA to take all the time it needs to fill each and every request
|
| 3 |
+
The application should now be fully operational with LLaMA 3.2 90B API as the exclusive AI provider make it so the miners understand to give priority to the LLaMA wait times and not move on until the process can be complted correctly
|