Repository navigation
Add Standard Compute provider - #883
Open
henrikdukefoss wants to merge 1 commit into
Open
henrikdukefoss wants to merge 1 commit into
henrikdukefoss wants to merge 1 commit into
Conversation
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.
Add Standard Compute as a built-in provider.
It uses the same pattern as the Cheaper Inference provider in #879.
Standard Compute is an OpenAI-compatible LLM gateway.
One API key gives access to open and frontier models.
It is wired on rig's OpenAI completions client.
The default endpoint is
https://api.stdcmpt.com/v1.The key is
STANDARDCOMPUTE_API_KEY.The default model is
StandardCompute, which is routed: each request goes to the cheapest enabled model that can handle it, with automatic fallback.Pinned model ids use the
vendor/modelform listed byGET https://api.stdcmpt.com/v1/models.Reasoning effort goes out as a top-level
reasoning_effort.It is not part of key autodetection.
Usage:
Details
Files mirror #879:
src/provider/{resolve,client,dispatch,mod,build,adapter,summarize,stream_dispatch,mod_tests}.rs,src/compression.rs,src/config/mod.rs,src/agent/agent_loop/{h7_smoke,rig_stream_factory}.rs, plusREADME.md,docs/config.md,docs/features.md,CHANGELOG.md.Tests: new unit tests for parse, default model, base URL, key lookup, built-in name protection, and the top-level
reasoning_effortshape, mirroring the Cheaper Inference ones. Theh7smoke scenarios skip whenSTANDARDCOMPUTE_API_KEYis unset.I did not build or run the tests locally; I'm relying on CI here.
Disclosure: I work on Standard Compute.
🤖 Generated with Claude Code