Skip to content

feat: add Mizumi provider - #6890

Open
mizumico wants to merge 1 commit into
ChatGPTNextWeb:mainfrom
mizumico:add-mizumi-provider
Open

mizumico wants to merge 1 commit into
ChatGPTNextWeb:mainfrom
mizumico:add-mizumi-provider

Conversation

@mizumico

@mizumico mizumico commented Sep 6, 2026

Copy link
Copy Markdown

What

Adds Mizumi as a built-in API provider, following the same integration pattern as SiliconFlow / 302.AI (and the community Tensorix PR #6719).

Mizumi (https://mizumi.co) is an OpenAI-compatible LLM API gateway:

  • Base URL: https://api.mizumi.co/v1, auth via Authorization: Bearer sk-mizumi-...
  • Models: gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.4, gpt-4.1-mini
  • Streaming supported (SSE, X-Accel-Buffering: no passthrough)
  • 15–28% below official list pricing (spend-based tiers), zero prompt retention, $2 free trial credit
  • Docs: https://mizumi.co/docs

Files changed (11)

  • app/api/mizumi.ts (new) — server-side proxy route (fixed the copy-paste bug present in the Tensorix PR: uses serverConfig.mizumiUrl, not siliconFlowUrl)
  • app/client/platforms/mizumi.ts (new) — client LLMApi implementation with streaming/thinking parsing and live /v1/models listing
  • app/constant.tsMIZUMI_BASE_URL, ApiPath/ServiceProvider/ModelProvider entries, Mizumi endpoint paths, mizumiModels, DEFAULT_MODELS registration (provider sorted: 16, the next free slot after ai302=15)
  • app/api/[provider]/[...path]/route.ts, app/api/auth.ts — route + system key wiring
  • app/client/api.tsMizumiApi registration + getHeaders() auth
  • app/config/server.tsMIZUMI_URL / MIZUMI_API_KEY env support for self-hosters
  • app/store/access.tsmizumiUrl / mizumiApiKey state + isValidMizumi()
  • app/components/settings.tsx — endpoint + API key settings UI
  • app/locales/en.ts, app/locales/cn.ts — locale strings (cn.ts is the LocaleType source, so the Mizumi block is added there too; other locales fall back via DeepPartial)

Verification

  • npx tsc --noEmit passes (the only remaining error, app/config/build.ts → missing src-tauri/tauri.conf.json, is pre-existing on main and unrelated).
  • Not run: full next build / lint suite (heavy); happy to address any CI findings.

Contact: laurence.fok@synercoint.com

Mizumi (https://mizumi.co) is an OpenAI-compatible LLM API gateway.
Base URL https://api.mizumi.co/v1, Bearer auth (sk-mizumi-...),
streaming supported. Models: gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna,
gpt-5.5, gpt-5.4, gpt-4.1-mini.

Modeled on the SiliconFlow/Tensorix provider integrations:
- app/api/mizumi.ts (new): server-side proxy route
- app/client/platforms/mizumi.ts (new): client LLMApi implementation
- app/constant.ts: MIZUMI_BASE_URL, ApiPath/ServiceProvider/ModelProvider
  entries, Mizumi endpoint paths, mizumiModels, DEFAULT_MODELS (sorted: 16)
- app/api/[provider]/[...path]/route.ts + app/api/auth.ts: route + key wiring
- app/client/api.ts: MizumiApi registration + header auth
- app/config/server.ts: MIZUMI_URL / MIZUMI_API_KEY env support
- app/store/access.ts: mizumiUrl/mizumiApiKey state + isValidMizumi()
- app/components/settings.tsx: endpoint + API key settings UI
- app/locales/en.ts + cn.ts: locale strings (cn is the LocaleType source)
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