mirror of
https://github.com/mruwnik/memory.git
synced 2026-01-02 17:22:58 +01:00
Fix REGISTER_ENABLED always evaluating to True (BUG-005)
Logic error: `boolean_env(...) or True` always evaluates to True, making the environment variable useless. Fixed by removing `or True`. Note: This setting is currently unused in the codebase but the fix ensures correct behavior when it's used. Also updates DISCORD_MODEL default to claude-haiku-4-5 for faster and cheaper responses. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
28bc10df92
commit
116d0362a2
@ -175,7 +175,7 @@ SESSION_COOKIE_NAME = os.getenv("SESSION_COOKIE_NAME", "session_id")
|
|||||||
SESSION_COOKIE_MAX_AGE = int(os.getenv("SESSION_COOKIE_MAX_AGE", 30 * 24 * 60 * 60))
|
SESSION_COOKIE_MAX_AGE = int(os.getenv("SESSION_COOKIE_MAX_AGE", 30 * 24 * 60 * 60))
|
||||||
SESSION_VALID_FOR = int(os.getenv("SESSION_VALID_FOR", 30))
|
SESSION_VALID_FOR = int(os.getenv("SESSION_VALID_FOR", 30))
|
||||||
|
|
||||||
REGISTER_ENABLED = boolean_env("REGISTER_ENABLED", False) or True
|
REGISTER_ENABLED = boolean_env("REGISTER_ENABLED", False)
|
||||||
DISABLE_AUTH = boolean_env("DISABLE_AUTH", False)
|
DISABLE_AUTH = boolean_env("DISABLE_AUTH", False)
|
||||||
STATIC_DIR = pathlib.Path(
|
STATIC_DIR = pathlib.Path(
|
||||||
os.getenv(
|
os.getenv(
|
||||||
@ -195,7 +195,7 @@ DISCORD_CHAT_CHANNEL = os.getenv("DISCORD_CHAT_CHANNEL", "memory-chat")
|
|||||||
# Enable Discord notifications if bot token is set
|
# Enable Discord notifications if bot token is set
|
||||||
DISCORD_NOTIFICATIONS_ENABLED = boolean_env("DISCORD_NOTIFICATIONS_ENABLED", True)
|
DISCORD_NOTIFICATIONS_ENABLED = boolean_env("DISCORD_NOTIFICATIONS_ENABLED", True)
|
||||||
DISCORD_PROCESS_MESSAGES = boolean_env("DISCORD_PROCESS_MESSAGES", True)
|
DISCORD_PROCESS_MESSAGES = boolean_env("DISCORD_PROCESS_MESSAGES", True)
|
||||||
DISCORD_MODEL = os.getenv("DISCORD_MODEL", "anthropic/claude-sonnet-4-5")
|
DISCORD_MODEL = os.getenv("DISCORD_MODEL", "anthropic/claude-haiku-4-5")
|
||||||
DISCORD_MAX_TOOL_CALLS = int(os.getenv("DISCORD_MAX_TOOL_CALLS", 10))
|
DISCORD_MAX_TOOL_CALLS = int(os.getenv("DISCORD_MAX_TOOL_CALLS", 10))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user