diff --git a/src/Chain.php b/src/Chain.php index 8ad5fb4..15c7416 100644 --- a/src/Chain.php +++ b/src/Chain.php @@ -81,9 +81,9 @@ public function call(MessageBagInterface $messages, array $options = []): Respon throw new ContentFilterViolationException(previous: $e); } - throw new InvalidArgumentException('' === $message ? 'Invalid request to model or platform' : $message, previous: $e); + throw new InvalidArgumentException('' === $message ? 'Invalid request to model or platform' : $message, 0, $e); } catch (HttpExceptionInterface $e) { - throw new RuntimeException('Failed to request model', previous: $e); + throw new RuntimeException('Failed to request model', 0, $e); } $output = new Output($llm, $response, $messages, $options);