Skip to content

Commit

Permalink
fix stan
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 31, 2024
1 parent 6a5e97a commit 7b9945c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/LlmServices/ClaudeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ public function remapMessages(array $messages, bool $userLast = false): array

return $item->role !== 'system';
})
->transform(function ($item) {

/** @phpstan-ignore-next-line */
->transform(function (MessageInDto $item) {
$item->content = str($item->content)->replaceEnd("\n", '')->trim()->toString();

return $item->toArray();
Expand Down

0 comments on commit 7b9945c

Please sign in to comment.