Skip to content

Commit e335c49

Browse files
authored
Merge pull request #295 from nextcloud/fix/new-session
fix: explicitly set default sources when creating new session
2 parents 2e52670 + da376ce commit e335c49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Controller/ChattyLLMController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public function newSession(int $timestamp, ?string $title = null): JSONResponse
147147
$systemMsg->setRole('system');
148148
$systemMsg->setContent($userInstructions);
149149
$systemMsg->setTimestamp($session->getTimestamp());
150+
$systemMsg->setSources('[]');
150151
$this->messageMapper->insert($systemMsg);
151152

152153
return new JSONResponse([

0 commit comments

Comments
 (0)