diff --git a/src/Solutions/OpenAi/OpenAiSolutionResponse.php b/src/Solutions/OpenAi/OpenAiSolutionResponse.php index be2aa02..c51c96b 100644 --- a/src/Solutions/OpenAi/OpenAiSolutionResponse.php +++ b/src/Solutions/OpenAi/OpenAiSolutionResponse.php @@ -37,7 +37,9 @@ public function links(): array $links = []; foreach ($textLinks as $textLink) { - $links[$textLink['title']] = $textLink['url']; + if (isset($textLink['title']) && isset($textLink['url'])) { + $links[$textLink['title']] = $textLink['url']; + } } return $links;