9router/open-sse/handlers
decolua 7e5f5a8813 fix(claude): re-anchor passthrough cache breakpoints with 1h TTL
Passthrough kept the client's own cache_control markers, which point at
pre-normalization offsets. Once normalize/dedupe reshaped system and tools,
the breakpoints landed mid-array and the tail was re-cached every request.

- Pin the last system block and last tool at ttl 1h (was the client's 5m)
- Anchor the last assistant turn at 5m, falling back to the final message
  so a first turn still gets a breakpoint
- Fold mid-conversation system messages into the neighbouring user turn
  instead of hoisting them into body.system, where the volatile token
  counters invalidated the prefix on every request
- Run the anchoring after every token saver, at the final body

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-14 16:08:30 +07:00
..
chatCore fix(translator): preserve Responses Lite tools across Chat providers 2026-08-05 13:27:25 +07:00
embeddingProviders feat(providers): self-hosted OpenAI-compatible STT, TTS and embedding providers 2026-08-05 13:38:13 +07:00
fetch fix(jina-reader): recover after transient errors and use JSON POST API 2026-07-23 16:28:37 +07:00
imageProviders feat(antigravity): native image generation support 2026-06-21 17:54:32 +07:00
search fix(security): SSRF guard on search baseUrl, default-password remote login, and request-details redaction 2026-08-13 11:50:25 +07:00
ttsProviders feat(providers): self-hosted OpenAI-compatible STT, TTS and embedding providers 2026-08-05 13:38:13 +07:00
chatCore.js fix(claude): re-anchor passthrough cache breakpoints with 1h TTL 2026-08-14 16:08:30 +07:00
embeddingsCore.js feat(providers): self-hosted OpenAI-compatible STT, TTS and embedding providers 2026-08-05 13:38:13 +07:00
imageGenerationCore.js feat(antigravity): native image generation support 2026-06-21 17:54:32 +07:00
responsesHandler.js refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00
sttCore.js feat(providers): self-hosted OpenAI-compatible STT, TTS and embedding providers 2026-08-05 13:38:13 +07:00
ttsCore.js feat(tts): add Xiaomi MiMo text-to-speech support 2026-08-05 11:46:23 +07:00
videoCore.js feat(xai): add Grok Imagine video generation (/v1/videos) + CLI 2026-07-16 15:29:52 +07:00