Updated prompt for translategemma

This commit is contained in:
thumapas committed 2026-09-29 11:25:37 +02:00
1 parent d7b99dd4b7
commit 2ff40ddf3e
1 file changed
+4 -2
+4 -2
View File
@@ -66,9 +66,11 @@ export default defineEventHandler(async (event) => {
? body.model ? body.model
: config.ollamamodel; : config.ollamamodel;
const prompt = `Translate the following text from ${body.source} to ${body.target}. Only output the translation, nothing else. const prompt = `You are a professional ${body.source} to ${body.target} translator. Your goal is to accurately convey the meaning and nuances of the original ${body.source} text while adhering to {TARGET_LANG} grammar, vocabulary, and cultural sensitivities.
Produce only the ${body.target} translation, without any additional explanations or commentary. Please translate the following ${body.source} text into ${body.target}:
Text to translate: ${body.text}`;
${body.text}`;
const ollamaRequest: OllamaRequest = { const ollamaRequest: OllamaRequest = {
model, model,