Repository navigation
RedCraftChat 0.2.9-SNAPSHOT
·
1 commit
to master
since this release
Hide protected names from the translator instead of asking it nicely
The museum holograms came back reading CollinesRoyaume again, which is
the second time, and nothing had regressed: the names were in
protected-names, the config was right and the plugin was current. The
protection was a sentence in the system prompt asking the model to copy
those names exactly, and a request is something that works most of the
time. Hologram lines are short and carry almost no context, and
KingdomHills is two ordinary English words stuck together, which is
close to the worst case for asking.
The names now go behind {0} placeholders before the request is built
and come back after, so the model is translating a sentence with a hole
in it rather than being trusted with a proper noun. It cannot translate
a string it never receives.
If a placeholder does not come back, the original text is sent
untranslated, the same way the interactive restore already fails
closed. An English hologram is a much smaller problem than a French one
naming a world nobody can visit.
A line that is only a name now skips the request entirely, which is
most hologram titles. The prompt rule stays for the cases masking steps
around, like a message that already contains a placeholder of its own.