The json response of the AI service is badly formatted. This commit improves the sanitizer to try to handle the response correctly.
The json response of the AI service is badly formatted. This commit improves the sanitizer to try to handle the response correctly.