Skip to content

feat(llm): add xAI Build affinity and smarter prompt-cache compaction - #18

Merged
Blankeos merged 1 commit into
mainfrom
feat/xai-gb-efficiency
Aug 8, 2026
Merged

feat(llm): add xAI Build affinity and smarter prompt-cache compaction#18
Blankeos merged 1 commit into
mainfrom
feat/xai-gb-efficiency

Conversation

@Blankeos

@Blankeos Blankeos commented Aug 8, 2026

Copy link
Copy Markdown
Owner
  • Add SessionAffinity and header injection for xAI Grok Build routing on main turns, parent-cached aux calls, and subagents. - Add adaptive request IDs and sticky session_id/conv_id handling, with fresh req IDs for continuation calls. - Extend prompt-cache observability with hit-rate metrics for Anthropic/OpenAI/OpenAI-compatible/Responses usage. - Update Anthropic cache marking to prefer transcript tip + previous-user placement and skip thinking blocks. - Add user-turn-based tool-output hard clear policy and hysteresis-based inline image compaction to reduce cache-bust churn. - Drop empty system/user rows during message conversion to preserve sticky-prefix stability. - Update prompt-caching docs and add related test coverage for the new behaviors.

- Add `SessionAffinity` and header injection for xAI Grok Build routing on main turns, parent-cached aux calls, and subagents. - Add adaptive request IDs and sticky `session_id`/`conv_id` handling, with fresh req IDs for continuation calls. - Extend prompt-cache observability with hit-rate metrics for Anthropic/OpenAI/OpenAI-compatible/Responses usage. - Update Anthropic cache marking to prefer transcript tip + previous-user placement and skip thinking blocks. - Add user-turn-based tool-output hard clear policy and hysteresis-based inline image compaction to reduce cache-bust churn. - Drop empty system/user rows during message conversion to preserve sticky-prefix stability. - Update prompt-caching docs and add related test coverage for the new behaviors.
@cursor

cursor Bot commented Aug 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Blankeos
Blankeos merged commit 77ad5ac into main Aug 8, 2026
2 checks 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