Skip to content

Commit

Permalink
Update lib/Controller/ChattyLLMController.php
Browse files Browse the repository at this point in the history
Co-authored-by: julien-nc <[email protected]>
Signed-off-by: Anupam Kumar <[email protected]>
  • Loading branch information
kyteinsky and julien-nc authored May 10, 2024
1 parent aaf8af6 commit 5ec221f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Controller/ChattyLLMController.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ private function getStichedMessages(int $sessionId): string {
return $stichedPrompt;
}

private function queryLLM(string $content): string {
$task = new TextProcessingTask(FreePromptTaskType::class, $content, Application::APP_ID, $this->userId);
private function queryLLM(string $prompt): string {
$task = new TextProcessingTask(FreePromptTaskType::class, $prompt, Application::APP_ID, $this->userId);
return trim($this->textProcessingManager->runTask($task));
}
}

0 comments on commit 5ec221f

Please sign in to comment.