From 5ec221f6fe7d1a79fc0dfdd17be5246cfd02d0a6 Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Fri, 10 May 2024 20:42:42 +0530 Subject: [PATCH] Update lib/Controller/ChattyLLMController.php Co-authored-by: julien-nc Signed-off-by: Anupam Kumar --- lib/Controller/ChattyLLMController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Controller/ChattyLLMController.php b/lib/Controller/ChattyLLMController.php index fc72565f..85809437 100644 --- a/lib/Controller/ChattyLLMController.php +++ b/lib/Controller/ChattyLLMController.php @@ -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)); } }