feat: add MiniMax as LLM provider with Guardian threat protection#1
Open
octo-patch wants to merge 1 commit intoOraclesTech:mainfrom
Open
feat: add MiniMax as LLM provider with Guardian threat protection#1octo-patch wants to merge 1 commit intoOraclesTech:mainfrom
octo-patch wants to merge 1 commit intoOraclesTech:mainfrom
Conversation
Add MiniMax (https://www.minimax.io) as a first-class provider integration for Guardian SDK. MiniMax offers powerful LLM models (M2.7, M2.5) through an OpenAI-compatible API, and this provider wraps MiniMax-configured OpenAI clients with the same threat detection pipeline used for OpenAI and Anthropic. Changes: - Add minimax_provider.py with MiniMaxProvider, ProtectedMiniMaxClient, and create_protected_minimax_client() convenience factory - Add MiniMax auto-detection in get_provider_for_client() via base_url - Add minimax optional dependency group in pyproject.toml - Add MiniMax provider example and install instructions to README - Add 30 tests (22 unit + 5 integration + 3 constant tests)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add MiniMax as a first-class provider integration for Guardian SDK. MiniMax offers powerful LLM models (M2.7, M2.5) through an OpenAI-compatible API at
https://api.minimax.io/v1. This provider wraps MiniMax-configured OpenAI clients with the same multi-layer threat detection pipeline used for OpenAI and Anthropic.Changes
ethicore_guardian/providers/minimax_provider.py—MiniMaxProvider,ProtectedMiniMaxClient,ProtectedChat,ProtectedCompletions, andcreate_protected_minimax_client()convenience factoryget_provider_for_client()inbase_provider.pyto detect MiniMax clients by checkingbase_urlfor 'minimax'minimaxoptional dependency group inpyproject.toml(usesopenai>=1.0.0)tests/test_minimax.py— 22 unit tests + 5 integration tests + 3 constant testsSupported Models
Usage
Test plan