diff --git a/src/Solutions/OpenAi/OpenAiSolutionResponse.php b/src/Solutions/OpenAi/OpenAiSolutionResponse.php index cefc2682..27799978 100644 --- a/src/Solutions/OpenAi/OpenAiSolutionResponse.php +++ b/src/Solutions/OpenAi/OpenAiSolutionResponse.php @@ -23,6 +23,9 @@ public function links(): array $textLinks = explode(PHP_EOL, $textLinks); $textLinks = array_map(function ($textLink) { + $textLink = str_replace('\\', '\\\\', $textLink); + $textLink = str_replace('\\\\\\', '\\\\', $textLink); + return json_decode($textLink, true); }, $textLinks);