Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ LAMBDA_URL = os.getenv("LAMBDA_URL", "https://your-lambda-function-url")
|
|
| 31 |
GEMINI_KEY = os.getenv("GEMINI_API_KEY", "")
|
| 32 |
STORYLINE_SERVER_URL = os.getenv("STORYLINE_SERVER_URL", "https://your-storyline-server-url")
|
| 33 |
FLUSH_INTERVAL = 30 # seconds between DB backups per user
|
| 34 |
-
MAX_HISTORY_TURNS = 10 # Maximum conversation turns to keep in context
|
| 35 |
MAX_MEMORY_MESSAGES = 90 # Maximum messages to keep in memory per user
|
| 36 |
MEMORY_CLEANUP_TIMEOUT = 1800 # 30 minutes in seconds - remove inactive users
|
| 37 |
|
|
|
|
| 31 |
GEMINI_KEY = os.getenv("GEMINI_API_KEY", "")
|
| 32 |
STORYLINE_SERVER_URL = os.getenv("STORYLINE_SERVER_URL", "https://your-storyline-server-url")
|
| 33 |
FLUSH_INTERVAL = 30 # seconds between DB backups per user
|
| 34 |
+
MAX_HISTORY_TURNS = 50 # 10 # Maximum conversation turns to keep in context
|
| 35 |
MAX_MEMORY_MESSAGES = 90 # Maximum messages to keep in memory per user
|
| 36 |
MEMORY_CLEANUP_TIMEOUT = 1800 # 30 minutes in seconds - remove inactive users
|
| 37 |
|