Skip to content

Commit

Permalink
20 minutes session
Browse files Browse the repository at this point in the history
  • Loading branch information
polterguy committed Sep 24, 2023
1 parent 287d334 commit b6b418c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/files/system/openai/magic.startup/magic.ai.chat.hl
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,10 @@ select prompt, max(completion) as completion
remove-nodes:x:@.session/0
math.decrement:x:@.fixed
lambda2hyper:x:@.session/*

// Notice, storing session for 20 minutes max!
cache.set:x:@.arguments/*/session
expiration:600
expiration:1200
value:x:@lambda2hyper

// Checking if type is "supervised" at which point we store request.
Expand Down

0 comments on commit b6b418c

Please sign in to comment.