Skip to content

Commit

Permalink
ready for verification in SummarizeCollection next
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Apr 29, 2024
1 parent 81e0cde commit 54e086c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/Http/Controllers/ChatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ public function chat(Chat $chat)
Log::info('[LaraChain] Running Simple Completion');
$prompt = $validated['input'];

ChatUiUpdateEvent::dispatch(
$chat->chatable,
$chat,
'We are running a completion back shortly'
);
notify_ui($chat, "We are running a completion back shortly");

$response = LlmDriverFacade::driver($chat->getDriver())->completion($prompt);
$response = $response->content;
Expand All @@ -92,11 +88,7 @@ public function chat(Chat $chat)
]
);

ChatUiUpdateEvent::dispatch(
$chat->chatable,
$chat,
'We are verifying the completion back shortly'
);
notify_ui($chat, "We are verifying the completion back shortly");

/** @var VerifyPromptOutputDto $response */
$response = VerifyResponseAgent::verify($dto);
Expand Down

0 comments on commit 54e086c

Please sign in to comment.