feat: Switch to translategemma:4b model, refine translation prompt, and add temperature option for improved translation.
This commit is contained in:
@@ -266,8 +266,11 @@
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
model: "gpt-oss",
|
model: "translategemma:4b", // Burayı yeni indirdiğin modelle değiştir
|
||||||
prompt: `Translate the following description into Turkish. "${rawDescription}"`,
|
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
|
stream: false
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user