diff --git a/lib/components/TextGenerated.tsx b/lib/components/TextGenerated.tsx index de7e2b9..ff9fb08 100644 --- a/lib/components/TextGenerated.tsx +++ b/lib/components/TextGenerated.tsx @@ -31,7 +31,7 @@ export function TextGenerated({ setText(undefined); if (status === "authenticated" && prompt) { - const newGeneration = generate(prompt); + const newGeneration = generate(prompt, { temperature: 0 }); setCurrentStream(newGeneration); diff --git a/lib/components/TextSummary.tsx b/lib/components/TextSummary.tsx index a5269b5..db079a6 100644 --- a/lib/components/TextSummary.tsx +++ b/lib/components/TextSummary.tsx @@ -33,6 +33,7 @@ export function TextSummary({ if (status === "authenticated" && prompt) { const newGeneration = generate(prompt, { systemPrompt: "Summarize what the text the user provided", + temperature: 0, }); setCurrentStream(newGeneration); diff --git a/lib/components/TextTranslated.tsx b/lib/components/TextTranslated.tsx index a160e17..eb8483d 100644 --- a/lib/components/TextTranslated.tsx +++ b/lib/components/TextTranslated.tsx @@ -26,6 +26,7 @@ export function TextTranslated({ if (status === "authenticated" && text) { generate(text, { systemPrompt: `Translate the text the user provided to this language: "${language}". Just say the translated text. Do not write anything else, do not write any explanation. Only write in the target language (${language})`, + temperature: 0, }).then(setTranslation); } }, [status, generate, text]);