feat: add MiniMax as cloud LLM provider#285
Open
octo-patch wants to merge 1 commit intoggozad:mainfrom
Open
Conversation
Add MiniMax (https://www.minimaxi.com) as an alternative cloud LLM provider, enabling users to chat with MiniMax-M2.7, M2.7-highspeed, M2.5 and M2.5-highspeed models directly from the terminal. - New MiniMaxLLM client with streaming, tool calls, thinking mode support - Provider selector (RadioSet) in the ChatEdit screen - MINIMAX_API_KEY / MINIMAX_BASE_URL environment variable configuration - Database migration to persist the provider per chat - 31 unit tests + 3 integration tests
Owner
|
Hey! If you are willing to help let me know and I will open a PR next week if I make progress. |
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 an alternative cloud LLM provider alongside Ollama, enabling users to chat with MiniMax-M2.7, M2.7-highspeed, M2.5 and M2.5-highspeed models directly from the terminal.
Changes
minimaxclient.py: NewMiniMaxLLMclient with SSE streaming viahttpx, tool call support,<think>tag parsing for thinking mode, and temperature clamping to [0, 1.0]chat_edit.py: Provider selector (RadioSet: Ollama / MiniMax) in the model selection screen — MiniMax option is automatically disabled whenMINIMAX_API_KEYis not setconfig.py:MINIMAX_API_KEYandMINIMAX_BASE_URLenvironment variablestypes.py:providerfield onChatModel(defaults to"ollama"for backward compatibility)store.py+v0_14_8.py: Database migration to persist provider per chat sessionchat.py:_create_llm_client()factory that routes to the correct client based on provider, plushttpx.HTTPStatusErrorerror handlingConfiguration
When
MINIMAX_API_KEYis set, a provider toggle appears in the chat creation screen.No breaking changes
"ollama")httpxalready available viaollama)ALTER TABLE chat ADD COLUMN providerTest plan