Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Jul 4, 2024
1 parent 4358279 commit 081813b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Modules/LlmDriver/app/Orchestrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ public function handle(
* @TODO
* Refactor this since Message really can build this
* and I am now passing this into all things.
* Will come back shortly
*/
$functionDto = FunctionCallDto::from([
'arguments' => '{}',
'function_name' => 'standards_checker',
'filter' => $filter,
]);

$response = StandardsChecker::handle($messagesArray, $chat, $functionDto);
$response = StandardsChecker::handle($message);
$messagesArray = $this->handleResponse($response, $chat);
$this->response = $response->content;
$this->requiresFollowup = $response->requires_follow_up_prompt;
Expand Down
2 changes: 1 addition & 1 deletion Modules/LlmDriver/app/Requests/MessageInDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function toArray(): array
{
return [
'content' => $this->content,
'role' => $this->role->value,
'role' => $this->role,
];
}

Expand Down

0 comments on commit 081813b

Please sign in to comment.