Problem Description
When using Step-3.5-Flash through OpenClaw (or directly via API), context overflow errors occur even after relatively short conversations, forcing users to reset sessions frequently.
Error message:
Context overflow: prompt too large for the model. Try /reset (or /new) to start a fresh session, or use a larger-context model.
Expected Behavior
Other providers (e.g., MiniMax) handle context overflow gracefully by automatically dropping the oldest content from context, allowing conversations to continue seamlessly without errors. The model should either:
- Automatically manage context (like MiniMax does), or
- At minimum, provide a clearer error message explaining the actual input size limit
Environment
- Model: step-3.5-flash
- Context Window: 256,000 tokens (per documentation)
- API Endpoint: https://api.stepfun.com/v1 (China)
- Usage: OpenClaw agent with multi-turn conversation
Additional Observations
- The error occurs after only a few exchanges (not approaching 256K tokens)
- Cache metrics show: `缓存 67.2k/0 (98%)` - unclear what this means but seems relevant
- When using `reasoning: true` mode, the reasoning output consumes ~70% of output tokens, which may be contributing to context size
- Other providers with similar or smaller context windows (like MiniMax) handle this gracefully via automatic context eviction
Feature Request
Please consider implementing graceful context management similar to other providers, where:
- When context approaches the limit, older messages are automatically evicted
- Users can continue conversations without manual `/reset`
- Or alternatively, implement a sliding window that actively manages context
This would significantly improve user experience, especially for agentic use cases with OpenClaw where long-running conversations are common.
Problem Description
When using Step-3.5-Flash through OpenClaw (or directly via API), context overflow errors occur even after relatively short conversations, forcing users to reset sessions frequently.
Error message:
Expected Behavior
Other providers (e.g., MiniMax) handle context overflow gracefully by automatically dropping the oldest content from context, allowing conversations to continue seamlessly without errors. The model should either:
Environment
Additional Observations
Feature Request
Please consider implementing graceful context management similar to other providers, where:
This would significantly improve user experience, especially for agentic use cases with OpenClaw where long-running conversations are common.