Repository navigation
Add SahabatMobile provider - #13727
sahabatmobile wants to merge 7 commits into
Conversation
Action items
|
Adds 8 models served directly by the SahabatMobile API (OpenAI-compatible): - Claude Sonnet 5.5, Opus 4.6, Opus 4.8, Haiku 5.5 (Anthropic direct) - LongCat 2.5 Preview, LongCat 2.0 (LongCat direct provider) - MiMo v2.6 Pro and Flash (Xiaomi MiMo Direct) Retail pricing = official upstream price per model, sourced from SahabatMobile dashboard/packages (accessed 2026-11-15) with upstream docs citations in each file. Revalidated with bun run validate (exit 0).
Action items
|
…iku tiered cost overrides, toggle wire comments, host capability deltas
Action items
|
…ash, keep slug and display name
Action items
|
|
No actionable findings. |
Re-open of #7204 as a fresh branch, per review feedback from @rekram1-node (the previous branch was considered diverged from dev). Base content passed review in #7204, plus a model-catalog expansion and review fixes.
What this adds
New provider SahabatMobile (
providers/sahabatmobile/, 13 files):provider.toml— OpenAI-compatible API (https://www.sahabatmobile.com/api/v1),npm = "@ai-sdk/openai-compatible",opencodeai = "@opencode/ai/providers/openai-compatible", envSAHABAT_API_KEY, docs linklogo.svgMiniMax-M3— reasoning toggle (adaptive/disabled), official $0.30/$1.20, tier >512k tokens $0.60/$2.40mimo-v2.5— reasoning toggle (default on), official $0.14/$0.28; Xiaomi retired this upstream ID (2026-10-21), the SahabatMobile gateway aliases the slug tomimo-v2.6-flash, so it stays callable (base_modelpoints at the serving model,namekeeps the display)mimo-v2.6-flash/mimo-v2.6-pro— reasoning toggle (default on), official $0.14/$0.28 and $0.435/$0.87qwen3.8-max— reasoning effort (low/medium/xhigh) + budget, official $2.00/$6.00claude-haiku-5-5— official Anthropic price, tiered: $0.1/$0.5; prompts >100k tokens $0.5/$2.5 (cost overrides)claude-sonnet-5-5— official $2/$10claude-opus-4-6/claude-opus-4-8— official $5/$25LongCat-2.0/LongCat-2.5-Preview— official limited-time rate $0.30/$1.20Pricing notes
costis the official vendor price, cited to the vendor's own pricing page in each file header (Anthropic, Xiaomi MiMo, MiniMax, LongCat; qwen3.8-max $2/$6 verified on Alibaba Model Studio's international table).costfields intentionally publish the upstream rate, not the marked-up retail.Validation
bun run validate— exit 0 (run against currentdev+ these files).bun run v1:check— additive only: new provider + 11 models; no existing v1 fields changed, no generic-modality warnings.bun testcases are pre-existing on dev (build-snapshot / network-dependent sync tests), unrelated to this change.Branch note
This branch is based on the fork's
devsnapshot of the same reviewed content — a pure rebase onto the latest upstream tip was blocked by token workflow-scope restrictions (ci-fixer.ymlchanged upstream), so the diff is strictly the provider files; merging results in dev + these files, no workflow files touched.