Skip to content

Commit 00a9abc

Browse files
committed
Update README.md
1 parent fb7801c commit 00a9abc

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ The following configuration will include the original text as well as the transl
6565

6666
```json
6767
{
68-
"Model": "mistral",
68+
"HostUrl": "default",
69+
"Model": "deepseek-r1:8b",
6970
"PropertyName": "translated_text",
70-
"Prompt": "Translate this to english and keep it short: '{TEXT}'",
71-
"Template": "{TEXT}\n----\n{GENERATED_TEXT}"
71+
"SystemPrompt": "You are a subtitle translation assistant. Your only task is to translate subtitles into the target language specified by the user. Subtitles may contain incomplete sentences-when that happens, translate them literally without trying to complete or alter their meaning. Always keep the translation faithful to the original text and do not add explanations or extra words.",
72+
"Prompt": "Translate this to english: '{TEXT}'",
73+
"Template": "{TEXT}\n----\n{GENERATED_TEXT}",
74+
"Debug": true
7275
}
7376
```
7477

@@ -79,9 +82,12 @@ Here’s an example configuration that does this:
7982

8083
```json
8184
{
85+
"HostUrl": "default",
8286
"Model": "deepseek-r1:8b",
8387
"PropertyName": "translated_text",
84-
"Prompt": "Consider the previous text for context ONLY: '{PREVIOUS_TEXT} {TEXT}'. Translate this to english and keep it short, and don't include the context in your response: '{TEXT}'",
85-
"Template": "{GENERATED_TEXT}"
88+
"SystemPrompt": "Input format: `Context: {PREVIOUS_TEXT} {TEXT}` `Task: Translate {TEXT} to English, short and clear.` Rules: Use {PREVIOUS_TEXT} only as context. Output only the translation of {TEXT}. No explanations, no context, no extra words.",
89+
"Prompt": "Context: '{PREVIOUS_TEXT} {TEXT}'\nTask: Translate '{TEXT}' to English, short and clear.",
90+
"Template": "{TEXT}\n----\n{GENERATED_TEXT}",
91+
"Debug": true
8692
}
8793
```

0 commit comments

Comments
 (0)