Repository navigation
fix(provider): add Standard Compute as a built-in provider - #4021
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 branch has not been deployed
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 Standard Compute as a built-in provider. I work on Standard Compute.
Standard Compute is an OpenAI-compatible gateway: one key for models from several labs, on monthly plans with a fixed compute budget. The entry uses the
OpenAIresponse type and the existing request path, so no new transport code is needed. It follows the OrcaRouter and Ambient entries.Changes
crates/forge_repo/src/provider/provider.json:standard_computeentry withSTANDARDCOMPUTE_API_KEY,OpenAIresponse type, chat URLhttps://api.stdcmpt.com/v1/chat/completionsand models URLhttps://api.stdcmpt.com/v1/models,api_keyauth.crates/forge_domain/src/provider.rs:ProviderId::STANDARD_COMPUTE, added tobuilt_in_providers(),display_nameandFromStr. Three tests mirrortest_orca_router_*, and the id joins the two shared assertion lists.crates/forge_repo/src/provider/provider_repo.rs:test_standard_compute_config, mirroringtest_orca_router_config(including theModels::Urlcheck).README.md: env-var block next to OrcaRouter.Models
The model list is fetched from the public
/v1/modelsendpoint (no key needed), which returns the plain OpenAI list shape thatListModelResponsealready parses, withcontext_length,architecture.input_modalitiesandsupported_parameters.standardcomputeroutes each request to one of the models enabled in the account; exact IDs such asanthropic/claude-sonnet-5.5pin a single model.API docs: https://docs.standardcompute.com/api/chat-completions
Verification
cargo test -p forge_domain --lib provider: 53 passedcargo test -p forge_repo --lib provider: 285 passed, 1 ignored (includestest_standard_compute_config)cargo clippy -p forge_domain -p forge_repo --tests: no warnings in the touched codecargo fmt --all -- --check: cleanGET https://api.stdcmpt.com/v1/modelsreturns{"object":"list","data":[...]}with the fields above🤖 Generated with Claude Code