Spaces:
Paused
Paused
Update server.js
Browse files
server.js
CHANGED
|
@@ -211,7 +211,7 @@ RULE 6 β FORMAT:
|
|
| 211 |
|
| 212 |
// ββ SLIDING WINDOW ENGINE βββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 213 |
async function slidingWindowEngine(res, jobId, systemPrompt, userPrompt, totalTokens) {
|
| 214 |
-
const CHUNK_TOKENS =
|
| 215 |
const CONTEXT_CHARS = 800;
|
| 216 |
const totalChunks = Math.ceil(totalTokens / CHUNK_TOKENS);
|
| 217 |
const job = jobs.get(jobId);
|
|
|
|
| 211 |
|
| 212 |
// ββ SLIDING WINDOW ENGINE βββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 213 |
async function slidingWindowEngine(res, jobId, systemPrompt, userPrompt, totalTokens) {
|
| 214 |
+
const CHUNK_TOKENS = 250;
|
| 215 |
const CONTEXT_CHARS = 800;
|
| 216 |
const totalChunks = Math.ceil(totalTokens / CHUNK_TOKENS);
|
| 217 |
const job = jobs.get(jobId);
|