File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2424 * We summarize chat sessions that are toggled to be remembered to inject the summaries as memories into LLM calls
2525 */
2626class SessionSummaryService {
27- public const BAtCH_SIZE = 10 ;
27+ public const BATCH_SIZE = 10 ;
2828 public const SUMMARY_MESSAGE_LIMIT = 150 ;
2929
3030 public const MAX_INJECTED_SUMMARIES = 10 ;
@@ -67,7 +67,7 @@ private function generateSummaries(array $sessions): void {
6767
6868 public function regenerateSummariesForOutdatedSessions (string $ userId ): void {
6969 try {
70- $ sessions = $ this ->sessionMapper ->getRememberedUserSessionsWithOutdatedSummaries ($ userId , self ::BAtCH_SIZE );
70+ $ sessions = $ this ->sessionMapper ->getRememberedUserSessionsWithOutdatedSummaries ($ userId , self ::BATCH_SIZE );
7171 $ this ->generateSummaries ($ sessions );
7272 } catch (Exception $ e ) {
7373 $ this ->logger ->warning ('Failed to generate chat summaries for outdated sessions ' , ['exception ' => $ e ]);
@@ -76,7 +76,7 @@ public function regenerateSummariesForOutdatedSessions(string $userId): void {
7676
7777 public function generateSummariesForNewSessions (string $ userId ): void {
7878 try {
79- $ sessions = $ this ->sessionMapper ->getRememberedUserSessionsWithoutSummaries ($ userId , self ::BAtCH_SIZE );
79+ $ sessions = $ this ->sessionMapper ->getRememberedUserSessionsWithoutSummaries ($ userId , self ::BATCH_SIZE );
8080 $ this ->generateSummaries ($ sessions );
8181 } catch (Exception $ e ) {
8282 $ this ->logger ->warning ('Failed to generate chat summaries for new sessions ' , ['exception ' => $ e ]);
You can’t perform that action at this time.
0 commit comments