feat(sync): RunInfra provider sync module - #5103
Open
jaberjaber23 wants to merge 1 commit into
Open
Conversation
Keeps the five RunInfra entries current from the provider's own authenticated GET /v1/models: authoritative for standing input, output, and cache_read pricing (USD per 1M), served context, and the enforced output ceiling. Hand-authored facts (reasoning_options, capabilities, descriptions, base_model pointers, probe-evidence comments) are never touched. Joins remote slugs to local TOMLs through each file's leading Source comment; skipCreates so a new remote model is reported for human probe-evidence authoring instead of auto-created; local models missing from the response are retained because a capacity pause can temporarily delist a real hosted model; fails closed on auth, parse, or duplicate slug ownership. Validated against the live API: dry run reports 0 created, 0 updated, 0 removed, 5 unchanged (with one currently paused model correctly retained while missing), and bun validate exits 0. Requires the RUNINFRA_API_KEY repository secret before merge; the module fails closed without it. We will hand the key to a maintainer through a secure channel on request.
Contributor
|
No actionable findings. |
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.
Adds hourly sync for the RunInfra provider (merged in #4793, #4884, #4971) so prices and limits stay current from our own API instead of manual PRs.
What it does
GET https://api.runinfra.ai/v1/modelsand updates ONLYcost.input,cost.output,cost.cache_read,limit.context, andlimit.outputon the five existingproviders/runinfraTOMLs.# Source: https://runinfra.ai/inference-api/<slug>comment (all five carry unique headers on dev).reasoning_options, capability overrides, descriptions,base_modelpointers, and the probe-evidence comments stay as authored (they were verified by live probes and the list endpoint is not authoritative for them).skipCreates: a new remote model is reported rather than auto-created, so a human authors probe evidence first, matching how our entries were reviewed in feat(provider): add RunInfra #4793 and feat(runinfra): add DeepSeek V4 Pro #4971./v1/modelswhile its page states the pause, and the sync must not delete a real entry over that.Validation
0 created, 0 updated, 0 removed, 5 unchanged, with the one currently paused model correctly reported and retained.bun validateexits 0.sync/index.ts(import, type, value,directgroup), the hourly workflow env, aruninfra:syncalias, and RunInfra notes insync.md.Secret
The workflow line reads
secrets.RUNINFRA_API_KEY. The module fails closed without it, so please add the secret before merging this to keep the hourly job green. We will hand the key to a maintainer through a secure channel whenever you are ready (it is a dedicated key, and we rotate it on request).