Skip to content

feat(providers): add Tsubasa routing and dashboard discovery - #43502

Draft
cenab wants to merge 14 commits into
BerriAI:mainfrom
cenab:add-tsubasa-provider
Draft

cenab wants to merge 14 commits into
BerriAI:mainfrom
cenab:add-tsubasa-provider

Conversation

@cenab

@cenab cenab commented Sep 27, 2026 •

Copy link
Copy Markdown

Handwritten 1-3 sentence description

[insert handwritten description here]

Details

TLDR

Problem this solves:

  • Tsubasa lacks native routing and dashboard provider discovery

How it solves it:

  • Registers chat completions and two public model aliases
  • Adds provider selection, credentials and endpoint discovery
  • Tests transport, streaming, errors, discovery and capability gates

Intentional product change: Admins can select Tsubasa when adding a model, with API key and base URL fields

User Flow

Before, an admin cannot find Tsubasa in the provider picker

  1. Open http://localhost:3000/models-and-endpoints/ and choose Add Model
  2. Search the Provider field for Tsubasa
  3. Observe No providers found

After, the same provider picker offers Tsubasa and its model aliases

  1. Open http://localhost:3000/models-and-endpoints/ and choose Add Model
  2. Search the Provider field for Tsubasa
  3. Select Tsubasa and choose tsubasa-fast or tsubasa-pro, with API key and API base fields available

Current-tip headful captures remain pending

Pre-Submission checklist

  • I have added meaningful tests
  • The test files covering my change pass locally
  • My PR passes all required CI/CD checks
  • My PR's scope is isolated to the existing provider contribution
  • Every automated review on this tip has finished and its findings are addressed
  • CLA signature verified
  • Required real-provider inference proof completed

Validation

November 12 follow-up. The published head remains 5d465d1202561308ac17c9b694475fd428268da4 and currently conflicts with main 6a98d0926117478a4ab937f1bad46a120cd4832a

Cost map guard attempt 2 fails before evaluating this patch because the workflow checks out main and calls the helper at its old path. The same command fails on untouched main, tracked in #51352. The November 6 validation below applies only to its recorded source and does not qualify a current-base refresh

Refreshed on November 6 at 5d465d1202561308ac17c9b694475fd428268da4 against main febbe38326b830d3457dd10237d805eb6cb9992b. Resolved the dashboard test conflict by keeping both the Tsubasa regression and the new upstream gateway-metadata test. The provider implementation is unchanged and the authored scope remains 14 files

On Python 3.12.7 and Node 26.10.0, 133 focused Python provider tests, eight catalog-generator tests, 46 CI-shard coverage checks and 102 dashboard helper tests pass. Dashboard production build passes. Scoped UI lint reports zero errors and 11 existing warnings

Regression controls use untouched production main with a test-only overlay and the same dependencies. All 11 Tsubasa Python regressions fail there. Dashboard controls report two failures and 100 passes. The refreshed candidate passes those cases. These are local transport and discovery checks, with injected HTTP clients where used

Formatting and the full repository lint gate pass. The e2e/harness type check reports zero errors. The full-code basedpyright gate reports 98,939 errors within its existing ceilings, rather than a zero-error codebase. No ceiling, suppression or contribution gate was increased

Commands run on the refreshed source
make install-test-deps
make format
make lint BASE_REF=febbe38326b830d3457dd10237d805eb6cb9992b LINT_JOBS=2
uv lock --check
uv run --frozen --no-sync python scripts/generate_provider_endpoints_support.py --check
uv run --frozen --no-sync pytest -q --noconftest -p no:cacheprovider -c /dev/null tests/code_coverage_tests/test_generate_provider_endpoints_support.py
uv run --frozen --no-sync pytest -q --color=no tests/unit/llms/openai_like/test_json_loader.py tests/unit/llms/openai_like/test_dynamic_config.py tests/unit/llms/openai_like/test_tsubasa_provider.py tests/unit/llms/openai_like/test_refuseless_provider.py tests/unit/llms/openai_like/test_inferenceapis_provider.py tests/unit/llms/openai_like/test_json_providers.py tests/unit/llms/openai_like/test_hostinger_router_provider.py tests/unit/proxy/public_endpoints/test_provider_fields.py
uv run --frozen --no-sync pytest -q --color=no tests/unit/test_assert_ci_coverage.py
cd ui/litellm-dashboard
../../scripts/with_dashboard_node.sh npm ci --no-audit --no-fund
LITELLM_PYTHON="$PWD/../../.venv/bin/python" ../../scripts/with_dashboard_node.sh npm run gen:api
../../scripts/with_dashboard_node.sh npm exec -- vitest run src/components/provider_info_helpers.test.tsx
../../scripts/with_dashboard_node.sh npm exec -- eslint src/components/provider_info_helpers.tsx src/components/provider_info_helpers.test.tsx
../../scripts/with_dashboard_node.sh npm run build

API types were regenerated with the project interpreter and remain byte-identical to main. Dependency manifests, locks and scanner policy also match main. Configured UTC OSV Scanner v2.3.8 exits zero for both candidate and pinned main. Unfiltered scans of both report the same 47 canonical advisory groups, represented by 65 identifiers. The provider contribution adds no exception or override

Hosted CI and required reviews remain incomplete. The full Python unit matrix and live provider, sandbox and browser flows were not run locally. This remains a draft pending the applicable CI, CLA, live-provider and UI qualification

Endpoint discovery includes the standard chat bridges. Native model tool and response-schema capabilities remain unqualified

Screenshots / Proof of Fix

Current-tip headful screenshots and real-provider inference proof remain pending. This PR introduces provider behavior, so the mechanical-change e2e exception does not apply. A November 6 presence check found no dedicated API key in the process or known task-owned checkout env files, so no live model request was attempted

Public model discovery returned HTTP 200 with both aliases on October 30. That establishes discovery only. Earlier screenshots, proxy captures and telemetry reruns are historical and do not qualify this tip

Type

New Feature

Caveats

High

  • Raw dependency scans retain upstream advisory findings

Medium

  • Real-provider inference proof remains pending
  • Current-tip headful UI captures remain pending
  • Native advanced capabilities remain unqualified

Low

  • CI authorization, required reviews and CLA qualification remain pending

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov

codecov Bot commented Sep 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed

codspeed Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 35 untouched benchmarks


Comparing cenab:add-tsubasa-provider (dc473cb) with main (471918c)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (9da926b) during the generation of this report, so 471918c was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@cenab

cenab commented Oct 17, 2026

Copy link
Copy Markdown
Author

Resolved current-main conflicts and verified provider tests, lint, and UI build. Draft remains pending CLA, live inference, and refreshed screenshots.

@cenab

cenab commented Oct 19, 2026 •

Copy link
Copy Markdown
Author

Conflict resolved and local tests pass. New workflows need maintainer authorization. Native baseline blocks local lint. Live qualification remains pending

This branch has not been deployed

No deployments
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.

2 participants