diff --git a/src/Model/Language/Llama.php b/src/Model/Language/Llama.php index cde192c..e3343a9 100644 --- a/src/Model/Language/Llama.php +++ b/src/Model/Language/Llama.php @@ -47,7 +47,7 @@ private static function convertToPrompt(MessageBag $messageBag): string continue; } - $messages[] = sprintf('%s: %s', ucfirst($message->getRole()->value), $message->content[0]->text); + $messages[] = sprintf('%s: %s', ucfirst($message->getRole()->value), $content); } return implode(PHP_EOL, $messages);