Open erikhugintech opened 4 weeks ago
Weblate does this to translate more strings at once. It appears that OpenAI omitted some strings from the response.
@nijel Is it possible to discard the problematic translations, but keep the rest? Currently, one such error in my 600 string initial automated translation prevents the remaining correctly translated strings from being saved.
Yes, b4d31853d2748dcb58813037163fb56219a57e64 will do that.
In the long term, it might be better to use JSON mode instead of this simple joining of strings. Example can be found at https://medium.com/@sean37gl/how-to-leverage-chatgpts-new-json-mode-to-build-better-user-experiences-db8f6963f608
Describe the issue
When attempting to OpenAI translate an entire component, I get "MachineTranslationError: Could not parse assistant reply".
A sample log:
I already tried
Steps to reproduce the behavior
Expected behavior
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
Weblate deploy checks
Additional context
The translated parts in the log seem to correspond to the final strings in the JSON file used as a source: