Skip to content

Commit

Permalink
return llm response instead of empty string
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <[email protected]>
  • Loading branch information
kyteinsky committed Dec 15, 2023
1 parent 294d0ca commit 36cc7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/LangRopeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function requestToExApp(

public function getWithPresentableSources(string $llmResponse, string ...$sourceRefs): string {
if (count($sourceRefs) === 0) {
return '';
return $llmResponse;
}

$output = str_repeat(PHP_EOL, 3) . $this->l10n->t('Sources referenced to generate the above response:') . PHP_EOL;
Expand Down

0 comments on commit 36cc7c9

Please sign in to comment.