Tony Gies 15e2f24046 fix: skip system messages in OpenRouter cacheAtDepth calculation (#5230)
System messages in the OpenRouter messages array were being counted
toward depth and could receive cache_control breakpoints. Since
OpenRouter hoists system messages into Claude's separate system
parameter, this misplaced breakpoints and could prevent caching
entirely if the hoisted content fell below minimum cache size.

Closes #5227
2026-03-01 16:58:51 +02:00
2025-07-22 23:34:41 +03:00
2026-02-22 15:49:28 +02:00
2026-02-27 20:26:22 +02:00
2026-03-01 16:49:21 +02:00
2024-02-12 15:56:14 +02:00
2025-07-19 21:02:16 +03:00
…
2025-07-21 00:24:49 +03:00
…
2026-03-01 16:48:45 +02:00
2026-02-14 16:27:02 +02:00
2025-07-27 14:13:53 +03:00
2025-07-17 13:49:15 +00:00
2025-07-21 00:24:49 +03:00
2025-12-02 10:45:59 +00:00
S
Description
LLM Frontend for Power Users.
https://sillytavern.app Readme AGPL-3.0
376 MiB
Languages
JavaScript 88.7%
HTML 8.1%
CSS 2.8%
Less 0.3%