victor HF Staff commited on
Commit
650d9e2
·
1 Parent(s): 2932b9c

feat: Set temperature to 0 for follow-up requests

Browse files
Files changed (1) hide show
  1. server.js +1 -1
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
- // temperature: 0.7, // Adjust temperature if needed
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 ---