diff --git a/app/Services/LlmServices/ClaudeClient.php b/app/Services/LlmServices/ClaudeClient.php index 61b0f51..222ca18 100644 --- a/app/Services/LlmServices/ClaudeClient.php +++ b/app/Services/LlmServices/ClaudeClient.php @@ -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();