[Feature] Add Tsubasa to the existing OpenAI-compatible provider catalog
[Feature] Add Tsubasa to the existing OpenAI-compatible provider catalog
The Goal / Use Case
Users can already select Tsubasa through an explicit openai model entry with a custom API base, but the provider picker does not offer its endpoint or public model aliases. A small catalog entry would make that setup discoverable without adding a new transport.
Proposed Solution
Add a named tsubasa provider using the existing HTTP/OpenAI-compatible path, the base URL https://api.tsubasa.sh/v1, and common models tsubasa-fast and tsubasa-pro. Preserve the existing API-base override and credential handling. Both aliases have a 32,768-token input-plus-output budget; a setup example should use agents.defaults.context_window = 32768 and a bounded output setting such as max_tokens = 4096.
Do not add an unapproved icon or claim tool, vision, reasoning, or model-listing qualification. Keep model fetching disabled until that endpoint is verified.
Potential Implementation (Optional)
- Add the entry to
pkg/providers/provider_metadata.go; keepprovider_catalog.goderiving UI options from that source. - Extend the existing compatible-provider case in
pkg/providers/factory_provider.goand its routing/default-base tests. - Exercise both aliases through
CreateProviderFromConfig,Chat, andChatStream, including explicit API-base override and rejected credentials. - Add one setup example in the existing provider documentation and run
make checkbefore a PR.
Impact & Roadmap Alignment
- This is a Core Feature
- This is a Nice-to-Have / Enhancement
- This aligns with the current Roadmap
Roadmap fit is for maintainers to determine. This issue comes before feature implementation, as requested by CONTRIBUTING.md.
Alternatives Considered
Keep the existing manual provider: "openai" route with a custom endpoint. It already works at the client boundary and remains a valid alternative if the project prefers fewer branded entries. No proxy, LiteLLM dependency, or additional SDK is needed.
Additional Context
Inspected commit bbf6893ca7afad27f1d00a0f5a45982a549c6ed6. An isolated native-factory fixture passed eight requests: both public aliases, JSON and SSE responses, and 401 handling. Each serialized request passed Tsubasa's actual request schema and admission-budget helper. The fixture used synthetic credentials and a loopback server. This does not establish live inference, a complete agent run, or model-native tool quality.
Recent relevant precedent: NEAR AI Cloud provider #2917 and MiMo common models #2915, both merged. A search for Tsubasa issues/PRs found no existing contribution at the time of this investigation. This proposal and its controlled checks were prepared with AI assistance.
Source: sipeed/picoclaw