Skip to content

Commit

Permalink
Fixup! CyberBuddy - Improve interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
csavelief committed Oct 8, 2024
1 parent 95798c0 commit 2a6f3ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public function handle(): void
$collection = \App\Modules\CyberBuddy\Models\Collection::find($answer->getValue());
$botman->reply("Le corpus selectionné est <b>{$collection->name}</b>. Je vais maintenant pouvoir vous répondre!");
$botman->userStorage()->save(['collection' => $collection->name]);
$response = ApiUtils::chat_manual_demo($historyKey, $collection, $message);
$response = ApiUtils::chat_manual_demo($historyKey, $collection->name, $message);
if ($response['error']) {
$botman->reply('Une erreur s\'est produite. Veuillez réessayer ultérieurement.');
} else {
Expand Down

0 comments on commit 2a6f3ca

Please sign in to comment.