Repository navigation
Conversation
…hanges .github/workflows/price-sync.yml runs scripts/pricing/sync_openrouter.py at 06:17 UTC on odd days of the month (and on demand). When a price changed, it opens or updates one pull request (branch price-sync/auto) with the new price table, the sync report, and a preview of the leaderboard at the new prices from reprice.py (report only). Nothing is merged or re-priced automatically. Creating the PR needs the repository setting that lets Actions create pull requests, or a PRICE_SYNC_TOKEN secret; with the secret the PR's checks run. Co-Authored-By: Claude Opus 5.5 <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.
For review; not merged. Merge after #263, so the schedule syncs standard prices rather than OpenRouter's model-level prices.
Adds
.github/workflows/price-sync.yml, the automatic part of the price path:scripts/pricing/sync_openrouter.py.price-sync/auto, or updates it if it's still open. The PR contains:model_profiles.yaml,model_cost.jsonand dated snapshot;reprice.py --all. It's report only and skips the dataset download, so the optimality columns aren't included.reprice.py --all --write. That keeps the ranking from moving on its own.One setting needed
The workflow can open the PR in either of two ways:
PRICE_SYNC_TOKENsecret, a fine-grained token with Contents: write and Pull requests: write on this repository. The workflow uses it when present, and the PR's checks then run.Testing
main. After merging, a first run from the Actions tab will test it end to end.🤖 Generated with Claude Code