Repository navigation
perf(briefs): Generate Briefs with the fast model - #2719
Merged
Merged
Conversation
Co-Authored-By: Thomas Jiang <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
thomasjiangcy
approved these changes
Nov 5, 2026
thomasjiangcy
enabled auto-merge (squash)
November 5, 2026 06:36
Contributor
|
7 screenshot changes — 7 changed · 0 added · 0 removed Review screenshots in Frameshift |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brief generation used the main model. Since getsentry/junior-prod#589 put every Turn on Opus 5.5, every Brief also runs on Opus. It costs about $363/week in production (4.4k calls, ~$0.11 each, ~21k input tokens).
The Opus prompt cache does not help here. Briefs run as a queued plugin task after the reply. They use their own system prompt and a JSON copy of the events, so they share no prefix with the Turn. The per-call cost matches uncached Opus pricing.
This change moves
updateConversationBriefand thejunior briefs rundefault tofastModelId(openai/gpt-6-lunaby default). Before #589, production already wrote ~4.2k Briefs per week on luna for about $6. Luna's p50 latency and output length were close to Opus. Spot checks of recent luna and Opus Briefs show similar detail and caveats.Follow-up, not in this PR: send only the events since the previous Brief's
throughSeqinstead of the whole history.via @thomasjiangcy.
--
View Session [Sentry]