Add MiniMax as first-class LLM provider#41
Open
octo-patch wants to merge 1 commit into
Open
Conversation
Add provider abstraction with MiniMax and OpenAI presets, including: - thepipe/provider.py: ProviderPreset dataclass, create_provider_client() factory, auto-detection via MINIMAX_API_KEY, temperature clamping, think-tag stripping for MiniMax models - CLI --provider/--api-key flags for easy provider switching - chunk_agentic() fallback from .beta.chat.completions.parse() to json_object mode for MiniMax compatibility - README documentation with MiniMax setup, models table, and CLI usage - 31 unit tests + 3 integration tests covering presets, factory, temperature clamping, think-tag stripping, agentic chunking fallback MiniMax models: M2.7, M2.7-highspeed, M2.5, M2.5-highspeed
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
Adds MiniMax as a first-class LLM provider alongside OpenAI, with full support for PDF VLM scraping, webpage analysis, agentic chunking, and structured extraction.
Changes
thepipe/provider.py(new): Provider abstraction withProviderPresetdataclass,create_provider_client()factory, auto-detection viaMINIMAX_API_KEY, temperature clamping, and think-tag strippingthepipe/__init__.py: Added--providerand--api-keyCLI flags for provider selection (backwards-compatible with existing--openai-*flags)thepipe/chunker.py:chunk_agentic()now falls back from.beta.chat.completions.parse()tojson_objectmode when structured output is not supported (e.g. MiniMax)README.md: MiniMax setup guide with Python/CLI examples, models table, and provider selection docstests/test_provider.py: 31 unit tests + 3 integration testsMiniMax Models
MiniMax-M2.7MiniMax-M2.7-highspeedMiniMax-M2.5MiniMax-M2.5-highspeedTest plan