Skip to content

feat(router): add SaladCloud as an OpenAI-compatible provider - #419

Open
Maksim (mgorkii-nlplogix) wants to merge 3 commits into
braintrustdata:mainfrom
mgorkii-nlplogix:feat/saladcloud-provider
Open

Maksim (mgorkii-nlplogix) wants to merge 3 commits into
braintrustdata:mainfrom
mgorkii-nlplogix:feat/saladcloud-provider

Conversation

@mgorkii-nlplogix

@mgorkii-nlplogix Maksim (mgorkii-nlplogix) commented Aug 5, 2026

Copy link
Copy Markdown

Summary

Adds saladcloud as an OpenAI-compatible router provider with https://ai.salad.cloud/v1 as its default endpoint and documents it in the provider list.

The public create_provider factory now applies the existing endpoint registry when an OpenAI-compatible provider has no explicit endpoint or template. This ensures create_provider("saladcloud", None, ...) sends requests and bearer credentials to SaladCloud. Custom endpoints and template precedence are preserved; registered URL templates such as Lepton's are also supported.

This change is limited to the public router client. The SaladCloud rollout is intended to expose only qwen3.6-35b-a3b; canonical model-catalog and hosted-gateway configuration remain separate from this repository.

Validation

  • Confirmed the new SaladCloud factory regression test failed before the fix because the outgoing request targeted api.openai.com.
  • Request-capture tests cover unary and streaming requests, bearer authentication, provider aliases, custom endpoints, template precedence, and existing OpenAI/Groq/Lepton defaults. They make no external network calls.
  • cargo +1.97.1 test --locked -p braintrust-llm-router --lib --tests — 237 unit tests and 19 integration tests passed.
  • cargo +1.97.1 clippy --locked -p braintrust-llm-router --all-targets -- -D warnings — passed.
  • cargo +1.97.1 fmt --all --check — passed.
  • git diff --check — passed.

Documentation

@mgorkii-nlplogix
Maksim (mgorkii-nlplogix) marked this pull request as ready for review August 10, 2026 13:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 308d7e3942

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread crates/braintrust-llm-router/src/providers/openai.rs
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-16T07:43:11.989791Z 9cfe362 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant