feat: Switch to translategemma:4b model, refine translation prompt, and add temperature option for improved translation.

This commit is contained in:
almazlar
2026-02-08 00:03:33 +03:00
parent 584e7cb81c
commit b5d329d7e4

View File

@@ -266,8 +266,11 @@
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
model: "gpt-oss",
prompt: `Translate the following description into Turkish. "${rawDescription}"`,
model: "translategemma:4b", // Burayı yeni indirdiğin modelle değiştir
prompt: `Act as a professional English-to-Turkish translator. Translate the following text into natural, fluent Turkish. Output ONLY the translation: "${rawDescription}"`,
options: {
temperature: 0.3 // Daha tutarlı ve ciddi çeviri için düşürdük
},
stream: false
})
});