Repository navigation
Set gpt-5.4-mini pricing in LLM review workflow - #12
Merged
Merged
Conversation
Per https://developers.openai.com/api/docs/pricing : $0.75 / $4.50 per 1M input/output tokens. Cost line will now render in review comments instead of the "set INPUT_PRICE_PER_M / OUTPUT_PRICE_PER_M" placeholder. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Updates the LLM review GitHub Actions workflow to populate real USD pricing for the configured review model so the posted PR comment can render an actual cost estimate.
Changes:
- Set
INPUT_PRICE_PER_MandOUTPUT_PRICE_PER_Mto the stated gpt-5.4-mini rates (USD per 1M tokens). - Updated the inline workflow comment to point to the pricing reference when bumping models.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…tions review.py: - Always tries `service_tier="flex"` first (~50% cheaper, slower). - On 429 Resource Unavailable retries with `service_tier="auto"` so a flex outage never silently drops a review. - Threads the actual tier used through to the rendered comment, alongside token counts and per-tier cost. - OpenAI client timeout raised to 900s (15 min) since flex requests can exceed the default 10-minute window. Workflow env split into per-tier prices (gpt-5.4-mini current rates): - flex: $0.375 in / $2.25 out per 1M tokens - standard: $0.75 in / $4.50 out per 1M tokens .github/copilot-instructions.md: - Configures GitHub's automatic Copilot PR review with the same scope and out-of-scope list as our custom workflow. Both reviewers now read from a single source of truth (REVIEW_RULES.md). - Two reviewers running in parallel for now; we'll calibrate and drop one once we see how each behaves on real PRs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Per https://developers.openai.com/api/docs/pricing :
Cost line in review comments will now render in USD instead of the
set INPUT_PRICE_PER_M / OUTPUT_PRICE_PER_Mplaceholder.