Spaces:
Running
Running
feat: Set temperature to 0 for follow-up requests
Browse files
server.js
CHANGED
@@ -479,7 +479,7 @@ ONLY output the changes in this format. Do NOT output the full HTML file again.`
|
|
479 |
provider: "fireworks-ai", // Ensure provider is correct if needed
|
480 |
messages: messages,
|
481 |
max_tokens: 12_000, // Keep max_tokens reasonable
|
482 |
-
|
483 |
});
|
484 |
|
485 |
// --- Unified Streaming Logic ---
|
|
|
479 |
provider: "fireworks-ai", // Ensure provider is correct if needed
|
480 |
messages: messages,
|
481 |
max_tokens: 12_000, // Keep max_tokens reasonable
|
482 |
+
temperature: isFollowUp ? 0 : undefined, // Set temperature to 0 for follow-ups, otherwise use default
|
483 |
});
|
484 |
|
485 |
// --- Unified Streaming Logic ---
|