-
Type:
Bug
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: LanguageResources, translate5 AI
-
Medium
-
Fix for a problem where invalide result from gpt was producing tag-handler errors
-
Emptyshow more show less
Problem
When editing an empty segment, all language resources will be queried, as the config is ignored for empty segments. Empty segments can be produced when using internal fuzzies on pretranslation. When such a segment is opened and GPT is queried, the following error is given in the fuzzy match panel:
editor_Services_Connector_TagHandler_Xliff::restoreInResult(): Argument #1 ($resultString) must be of type string, array given, called in /var/www/translate5/application/modules/editor/Plugins/OpenAI/LanguageResource/Connector.php on line 299
Solution
- is duplicated by
-
TRANSLATE-5166 Tag-Handling may fails for OpenAI if model response unexpectedly returned an array instead of string
- Done