Skip to content

Commit

Permalink
this should do it but I made a few changes I might convert back
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed May 8, 2024
1 parent a35e327 commit f36ed97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Modules/LlmDriver/app/Functions/SearchAndSummarize.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function handle(
$message = $model->getChat()->addInput($response->response, RoleEnum::Assistant);

$this->saveDocumentReference($message, $documentChunkResults);

notify_ui($model->getChat(), 'Complete');

return FunctionResponse::from(
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/SearchAndSummarizeChatRepoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function test_can_search(): void
$data = 'Foo bar';
$dto = new \LlmLaraHub\LlmDriver\Responses\CompletionResponse($data);

LlmDriverFacade::shouldReceive('driver->chat')
LlmDriverFacade::shouldReceive('driver->completion')
->once()
->andReturn($dto);

Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/SearchAndSummarizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function test_gets_user_input()
]),
]);

LlmDriverFacade::shouldReceive('driver->chat')
LlmDriverFacade::shouldReceive('driver->completion')
->once()
->andReturn($dto);

Expand Down

0 comments on commit f36ed97

Please sign in to comment.