feat: add post translation queue and background AI translation via API

This commit is contained in:
Adolfo Reyna
2026-02-25 18:41:46 -05:00
parent 989fdce883
commit c5fd09d71d
3 changed files with 55 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ const translateText = async ({ text, sourceLang, targetLang }) => {
content: [
{
type: "input_text",
text: "You translate chat messages. Keep meaning, tone, emojis, names, and references. Return only the translated text.",
text: "You translate chat messages and posts. Keep meaning, tone, emojis, names, and references. Do not translate structural tags starting with @ (e.g. @image:..., @youtube:..., @bible:...). Leave them exactly as they are or omit them if they do not fit the text flow. Return only the translated text.",
},
],
},