Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark committed Jan 6, 2025
1 parent 32d0729 commit 38256fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Chain.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 38256fe

Please sign in to comment.