glean/models/minimax

MiniMax models.

MiniMax documents temperature and top_p as having no effect, so this builder doesn’t offer them.

Types

A MiniMax model builder. Pick a model with one of the constructors (or custom), chain setters, then call build().

pub opaque type MiniMax

Values

pub fn build(m: MiniMax) -> model.Model

Build a Model to use with agent.new.

pub fn configure(
  m: MiniMax,
  f: fn(config.ProviderConfig) -> config.ProviderConfig,
) -> MiniMax

Change the provider configuration: base URL, timeout, headers, retries.

|> configure(config.timeout(_, 120_000))
pub fn custom(
  api_key key: String,
  model model_id: String,
) -> MiniMax

Any other model ID served by this API, such as one released after this version of glean. Only this module’s setters are available, so check the model accepts them.

pub fn m2_5(api_key key: String) -> MiniMax

Deprecated: MiniMax-M2.5 retires for pay-as-you-go on Nov 18, 2026. Use minimax.m3() instead.

MiniMax M2.5. Model ID: MiniMax-M2.5.

pub fn m2_7(api_key key: String) -> MiniMax

Deprecated: MiniMax-M2.7 retires for pay-as-you-go on Nov 18, 2026. Use minimax.m3() instead.

MiniMax M2.7. Model ID: MiniMax-M2.7.

pub fn m3(api_key key: String) -> MiniMax

MiniMax M3. Model ID: MiniMax-M3.

pub fn m3_1_flash(api_key key: String) -> MiniMax

MiniMax M3.1 Flash. Model ID: MiniMax-M3.1-Flash.

pub fn max_output_tokens(m: MiniMax, n: Int) -> MiniMax

Set the maximum number of output tokens.

pub fn stop_sequences(m: MiniMax, stops: List(String)) -> MiniMax

Stop generating when the model writes any of these strings.

✨ Search Document