Repository navigation
Conversation
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 Runcrate, an AI cloud, as a price source. The one function per provider layout and the fixture replay tests made this a small change.
Source: https://www.runcrate.ai/api/gpu-pricing, a public JSON feed (no key) behind our pricing page. Each GPU type has
min_price_hr, the live on-demand price per GPU-hour, andavailable_options, how many offers are live.What
runcrate()inscrape.mjsdoes:on_demandrow per GPU type, mapped with your existingcanon()and the feed's VRAM for the guard inrow(). The link goes throughoutLink(), so it carries yourrefandutm_sourceparams.canon()would file them as SXM. H200 NVL is skipped becausecanon()would merge it into H200. V100 is skipped since it comes in two memory sizes.Wiring: the
PROVIDERSentryruncrate, plus a recorded fixture of today's feed and aruncrate: 14line intest/fixtures/manifest.json. I left it out ofMARKETPLACE, so it sits in the dedicated tier, but that is your call.Checks:
node --check scrape.mjs && node --check test.mjsandnode test.mjs(all parsers pass, runcrate 14 rows), the same two commands as your CI. A livenode scrape.mjs --dry --only runcratereturned 14 rows, B300 to RTX 3090, and wrote nothing. I did not touchdata.jsonorhistory.json.AI assistance: I used an AI assistant to write and test this.
Disclosure: I work on Runcrate. Happy to change anything, including which GPU types are included.