You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,10 +65,13 @@ The following configuration will include the original text as well as the transl
65
65
66
66
```json
67
67
{
68
-
"Model": "mistral",
68
+
"HostUrl": "default",
69
+
"Model": "deepseek-r1:8b",
69
70
"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
72
75
}
73
76
```
74
77
@@ -79,9 +82,12 @@ Here’s an example configuration that does this:
79
82
80
83
```json
81
84
{
85
+
"HostUrl": "default",
82
86
"Model": "deepseek-r1:8b",
83
87
"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.",
0 commit comments