Repository navigation
feat: add RunInfra as an OpenAI-compatible provider - #644
Open
jaberjaber23 wants to merge 2 commits into
Open
jaberjaber23 wants to merge 2 commits into
jaberjaber23 wants to merge 2 commits into
Conversation
RunInfra (https://runinfra.ai) serves open-weight models behind an OpenAI-compatible endpoint at https://api.runinfra.ai/v1, keyed on RUNINFRA_API_KEY. This registers the provider and its five hosted chat models: DeepSeek V4.1 Flash, GLM 5.3 Flash, Qwen3.8 27B, Ornith 1.5 35B, and Nemotron 3.5 Lightning 30B. Prices, context windows, and image-input support come from the public model pages (https://runinfra.ai/inference-api) and the pricing page. The single advertised cached-input rate goes in cost_per_1m_out_cached (cache read), per CRUSH.md. Adds the matching pkg/catwalk constant and registry entry so go test ./... stays green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The buyer-facing env var in RunInfra's docs and SDK snippets is RUNINFRA_GATEWAY_KEY; RUNINFRA_API_KEY is an internal/deployment-kit secret. Match the documented buyer var so a user's key resolves. Co-Authored-By: Claude Opus 4.8 <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.
Summary
Adds RunInfra (https://runinfra.ai) as an OpenAI-compatible inference provider so Crush users can select it directly.
RunInfra serves open-weight models behind an OpenAI-compatible endpoint at
https://api.runinfra.ai/v1, authenticated withRUNINFRA_API_KEY. This adds the provider config (internal/providers/configs/runinfra.json) plus the matchingpkg/catwalkconstant andinternal/providersregistry entry, sogo test ./...passes.Models
deepseek-v4-1-flashglm-5-3-flashqwen3-8-27bornith-1-5-35bnemotron-3-5-lightning-30bDefaults: large
deepseek-v4-1-flash, smallnemotron-3-5-lightning-30b.Notes
https://runinfra.ai/inference-api/<id>) and the pricing page, not from memory. Onlydeepseek-v4-1-flashandnemotron-3-5-lightning-30bare text-only on this serve; the other three accept image input.cost_per_1m_out_cached(cache read) withcost_per_1m_in_cachedleft at 0, following the convention documented inCRUSH.md.idis the slug RunInfra's own code examples pass as themodelparameter (e.g.deepseek-v4-1-flash).go build ./...andgo test ./...; theinternal/providerstests confirm the provider is registered inKnownProviders()and that the default model ids exist.Source: https://runinfra.ai/pricing
馃 Generated with Claude Code