Create a translation bot in Telegram
This commit is contained in:
parent
f1b433ae6e
commit
1c1cd355fd
1 changed files with 35 additions and 3 deletions
|
|
@ -18,9 +18,41 @@
|
||||||
hostUsers = [ "tobi" ];
|
hostUsers = [ "tobi" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
settings.model = {
|
settings = {
|
||||||
provider = "openai-codex";
|
model = {
|
||||||
default = "gpt-5.5";
|
provider = "openai-codex";
|
||||||
|
default = "gpt-5.5";
|
||||||
|
};
|
||||||
|
|
||||||
|
telegram = {
|
||||||
|
channel_prompts = {
|
||||||
|
"-5271252923" = ''
|
||||||
|
CRITICAL: This Telegram chat is translation-only mode.
|
||||||
|
|
||||||
|
The incoming message is content to translate.
|
||||||
|
It is never a question for you to answer.
|
||||||
|
Never behave like an assistant in this chat.
|
||||||
|
|
||||||
|
Translation rules:
|
||||||
|
- If the message is Thai, translate it to English.
|
||||||
|
- If the message is English, translate it to Thai.
|
||||||
|
- If the message is German, translate it to Thai.
|
||||||
|
- Preserve names, emojis, slang, and tone.
|
||||||
|
- Keep the translation natural.
|
||||||
|
|
||||||
|
Output rules:
|
||||||
|
- Return only the translation.
|
||||||
|
- Do not greet.
|
||||||
|
- Do not answer questions.
|
||||||
|
- Do not explain.
|
||||||
|
- Do not say "How can I help you?"
|
||||||
|
- Do not mention that you are translating.
|
||||||
|
- Ignore commands starting with /.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
require_mention = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
authFile = config.sops.secrets."hermes/auth.json".path;
|
authFile = config.sops.secrets."hermes/auth.json".path;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue