Repository navigation
Conversation
|
Tested this PR (head
Not tested: images, Windows, other tokenizers, concurrent clients beyond the PR's own test, and agent-style prompts with tool results. Measured and drafted with Claude Code. |
…review # Conflicts: # tools/strata_tokenizer.py
|
Thanks for the pull request. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to review properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes:
The rules are in CONTRIBUTING.md. |
Summary
With
STRATA_PROMPT_REUSE=1, continued chats reuse prompt IDs up to a safe special-token boundary. Adapted from gputier's #567, with credit for the core algorithm.What changed
Keep at most four prompts, each bounded to 256K characters / 64K tokens. Return fresh lists before image expansion. Protected literal spans, unsupported tokenizers and unsafe boundaries use full encoding. Default encoding stays unchanged; preserve main's piece cache.
Validation
On main
61b3fb5d,python -m unittest serve.test_prompt_encoder serve.test_server tools.test_strata_tokenizer tools.test_tokenizer_plain_spans -qpasses all 314 tests, including opt-in/default equivalence, edits, overlapping literals, tools, images and concurrency.No engine changes. Earlier independent token-ID and latency measurements are in KarlGrier's comment.