-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Translate non-English inputs only #117
Comments
One solution I can think of is to first extract non-English words, insert newlines between them, and then replace the original text after translation. |
Well, I think it is diffucult to "extract non-English words", some examples:
|
According to what you say, can this problem not be solved? |
I am not saying that, just trying to reduce the invoking of translation service as much as possible. Like, you could omit it if there are only English characters in the prompt. |
I think we can provide such a configuration as a bottom-up strategy: interface TranslatorOptions {
enabled?: boolean
ignoreLatin?: boolean
} |
This option would be provided as the config of NovelAI plugin or any translator plugin? |
NovelAI only - other plugins might not have such complicated situation. Another approach (for backward compatibility): interface PromptOptions {
translator?: boolean
ignoreLatin?: boolean
} |
Scope
NovelAI, NAIFU, Stable Diffusion WebUI (AUTOMATIC1111)
Describe the problem related to the feature request
Currently NovelAI-Bot passes all input into translation service if capable, but translation backends service cost rapidly as there are always extremely long inputs.
Describe the solution you'd like
To add a check that allows non-English text inputs passed into translation service only.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: