feat: add MiniMax as first-class LLM provider with preset system#156
Open
octo-patch wants to merge 1 commit intodenizsafak:mainfrom
Open
feat: add MiniMax as first-class LLM provider with preset system#156octo-patch wants to merge 1 commit intodenizsafak:mainfrom
octo-patch wants to merge 1 commit intodenizsafak:mainfrom
Conversation
Add a provider dropdown to the LLM settings page so users can pick MiniMax, OpenAI, DeepSeek, or Ollama and have the endpoint URL, model list, and API-key hint auto-filled. Custom endpoints still work via the "Custom endpoint" option. - New `abogen/llm_providers.py` — `LLMProviderPreset` dataclass and built-in presets (MiniMax, OpenAI, DeepSeek, Ollama) - Settings UI: provider `<select>` dropdown with JS auto-fill logic - Backend: `llm_provider` key threaded through settings pipeline - README: provider table and MiniMax configuration docs - `.env.example`: MiniMax Cloud commented-out example - 10 unit tests + 3 integration tests (all passing)
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
abogen/llm_providers.pymodule withLLMProviderPresetdataclass and 4 built-in presets (MiniMax athttps://api.minimax.io/v1, OpenAI, DeepSeek, Ollama)Changes
abogen/llm_providers.pyLLMProviderPresetdataclass, built-in presets,get_provider_presets()andget_provider_by_id()abogen/normalization_settings.pyllm_providerkey to settings defaultsabogen/webui/templates/settings.html<select>dropdown in LLM settings sectionabogen/webui/static/settings.jsapplyProviderPreset()auto-fill logic +initProviderDropdown()abogen/webui/routes/settings.pyllm_provider_presetsto templateabogen/webui/routes/utils/settings.pyllm_providerthrough settings pipelineREADME.md.env.exampleTest plan
llm_providers.py(preset lookup, uniqueness, frozen dataclass, to_dict, etc.)build_llm_configurationwith MiniMax preset)