feat(buzz-agent): add MiniMax as a first-class provider - #3560
Open
octo-patch wants to merge 1 commit into
Open
Conversation
MiniMax speaks the OpenAI-compatible Chat Completions wire, so this adds a Provider::MiniMax that reuses that request path with MiniMax defaults: MINIMAX_API_KEY bearer auth, a MiniMax-M3 model default, and global (api.minimax.io) / mainland-China (api.minimaxi.com) base URLs selected by the minimax / minimax-cn provider spelling and overridable via MINIMAX_BASE_URL.
Chessing234
reviewed
Jul 29, 2026
Chessing234
left a comment
Contributor
There was a problem hiding this comment.
Clean provider add following the documented OpenAI-compatible pattern. Reusing the existing request/parse path for MiniMax keeps the surface area small. README + enum/config wiring look right. One question: does MiniMax need any auth-header or base-URL default distinct from the generic OpenAI-compatible provider, or is BUZZ_AGENT_BASE_URL + key enough for first ship?
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.
Reason: The buzz-agent runtime shipped dedicated Anthropic, OpenAI-compatible, and Databricks providers but had no MiniMax provider.
Adds MiniMax as a first-class
BUZZ_AGENT_PROVIDERin the agent runtime. MiniMax speaks the OpenAI-compatible Chat Completions dialect, so this reuses the existing request path rather than introducing a new body/parse pair — matching the crate's documented "adding a provider" pattern.Changes
crates/buzz-agent/src/config.rsProvider::MiniMaxenum variant.resolve_provideraccepts the region-selecting spellingsminimax(global) andminimax-cn(mainland China); the key is validated infrom_env, mirroring the Databricks path.from_envwiresMINIMAX_API_KEY(bearer), aMINIMAX_MODELdefault ofMiniMax-M3, and a region-derived base URL —https://api.minimax.io/v1forminimax,https://api.minimaxi.com/v1forminimax-cn— overridable viaMINIMAX_BASE_URL.OpenAiApi::Chatis pinned so theautohost heuristic never routes to/responses.crates/buzz-agent/src/llm.rsProvider::MiniMaxthrough the OpenAI-compatible Chat Completions request path and the static bearer token source.crates/buzz-agent/README.mdBUZZ_AGENT_PROVIDER=anthropic+ANTHROPIC_BASE_URL.Tests
resolve_provider_accepts_minimax_region_spellings— every accepted spelling resolves toProvider::MiniMax(case-insensitive).minimax_default_base_url_selects_region_by_spelling— global vs mainland-China base-URL selection.minimax_routes_over_openai_chat_completions— a MiniMax config POSTs to/v1/chat/completionswith the configured model and parses the response.Checks run
cargo fmt -p buzz-agent -- --check— clean.cargo clippy -p buzz-agent --tests— clean.cargo test -p buzz-agent— 302 library tests plus the 3 new tests pass. One pre-existing, unrelated multi-threaded steering test (steer_folds_into_active_turn_without_cancelling) is flaky on this machine and passes on re-run; it does not touch the provider or config code paths.