From 38256fea6ee214672c0db98228122a510785b076 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Mon, 6 Jan 2025 13:55:44 +0100 Subject: [PATCH] - --- src/Chain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);