Skip to content
This repository was archived by the owner on Sep 7, 2026. It is now read-only.

feat: add MiniMax translate provider - #1298

Open
octo-patch wants to merge 1 commit into
pot-app:masterfrom
octo-patch:feature/add-minimax-provider
Open

octo-patch wants to merge 1 commit into
pot-app:masterfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch

Copy link
Copy Markdown

Summary

Add MiniMax as a new translation service provider. MiniMax exposes an OpenAI-compatible chat completions API, so this integrates cleanly with the existing LLM-based translate services (openai / chatglm / etc.).

Changes

  • Add src/services/translate/minimax provider (chat translation with stream and non-stream support)
  • Add config UI: instance name, request path, API key, model selector and customizable prompt list
  • Register the provider in src/services/translate/index.jsx (auto-listed in the service picker)
  • Add MiniMax-M3 as the available model
  • Add English and Simplified Chinese i18n entries (other locales fall back to English)
  • Add provider logo

Notes

  • Default Base URL: https://api.minimax.io/v1/chat/completions (overseas). Domestic users can switch the request path to https://api.minimaxi.com/v1/....
  • Auth uses Authorization: Bearer <API key>, consistent with the existing OpenAI provider.
  • Default model MiniMax-M3.

Testing

  • pnpm build passes
  • prettier --check passes on all changed files
  • Verified the MiniMax-M3 model is recognized by the OpenAI-compatible endpoint

Add MiniMax as a new translation service provider using its
OpenAI-compatible chat completions API.

- Add provider implementation with stream and non-stream support
- Add config UI with request path, API key, model and prompt list
- Register provider in the translate service index
- Add MiniMax-M3 as the available model
- Add English and Simplified Chinese i18n entries
- Add provider logo

Co-Authored-By: Octopus <liyuan851277048@icloud.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant