Skip to content

Make short-term memory context window configurable - #281

Merged
veithly merged 2 commits into
mainfrom
fix/configurable-context-window
Jun 5, 2026
Merged

Make short-term memory context window configurable#281
veithly merged 2 commits into
mainfrom
fix/configurable-context-window

Conversation

@veithly

@veithly veithly commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Make ShortTermMemoryConfig.max_tokens configurable from environment variables.
  • Prefer SPOON_AI_SHORT_TERM_MAX_TOKENS, SPOON_BOT_CONTEXT_WINDOW, SPOON_CONTEXT_WINDOW, then CONTEXT_WINDOW.
  • Raise the fallback default to 1_000_000 tokens so long tool-driven sessions are not compacted at the previous 8k default.

Validation

  • Ran Python compile check for spoon_ai/chat.py.

@veithly
veithly merged commit 9087bea into main Jun 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant