Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions weblate/machinery/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@
SEPARATOR = "\n==WEBLATE_PART==\n"
SEPARATOR_RE = re.compile(r"\n *==WEBLATE_PART== *\n")
SEPARATOR_PROMPT = f"""
You receive an input as strings separated by {SEPARATOR} and
your answer separates strings by {SEPARATOR}.
You receive an input as strings separated by {SEPARATOR} and your answer
separates strings by {SEPARATOR}. Anything besides {SEPARATOR} is content to be
translated. The answer should include translations for all the strings in
the same order as they appeared in the input.
"""
REPHRASE_PROMPT = f"""
You receive an input as the source and existing translation strings separated
Expand Down
Loading