🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
Auto-update documentation after merge [skip ci]
camel-docs-bot024db4fb12ac
diff --git a/docs/key_modules/models.md b/docs/key_modules/models.mdindex 4cedef76f..d0a059a32 100644--- a/docs/key_modules/models.md+++ b/docs/key_modules/models.md@@ -52,6 +52,7 @@ CAMEL supports a wide range of models, including [OpenAI’s GPT series](https:/| **Reka** | reka-core, reka-flash, reka-edge || **COHERE** | command-r-plus, command-r, command-light, command, command-nightly || **ERNIE** | ernie-x1-turbo-32k, ernie-x1-32k, ernie-x1-32k-preview<br/>ernie-4.5-turbo-128k, ernie-4.5-turbo-32k<br/>deepseek-v3, deepseek-r1, qwen3-235b-a22b |+| **MiniMax** | MiniMax-M2, MiniMax-M2-Stable |### API & Connector Platformsdiff --git a/docs/mintlify/docs.json b/docs/mintlify/docs.jsonindex 58089857c..4d125a994 100644--- a/docs/mintlify/docs.json+++ b/docs/mintlify/docs.json@@ -233,6 +233,7 @@"reference/camel.configs.internlm_config","reference/camel.configs.litellm_config","reference/camel.configs.lmstudio_config",+ "reference/camel.configs.minimax_config","reference/camel.configs.mistral_config","reference/camel.configs.modelscope_config","reference/camel.configs.moonshot_config",@@ -318,6 +319,7 @@"reference/camel.models.internlm_model","reference/camel.models.litellm_model","reference/camel.models.lmstudio_model",+ "reference/camel.models.minimax_model","reference/camel.models.mistral_model","reference/camel.models.model_factory","reference/camel.models.model_manager",diff --git a/docs/mintlify/reference/camel.configs.minimax_config.mdx b/docs/mintlify/reference/camel.configs.minimax_config.mdxnew file mode 100644index 000000000..e46836ae8--- /dev/null+++ b/docs/mintlify/reference/camel.configs.minimax_config.mdx@@ -0,0 +1,31 @@+<a id="camel.configs.minimax_config"></a>++<a id="camel.configs.minimax_config.MinimaxConfig"></a>++## MinimaxConfig++```python+class MinimaxConfig(BaseConfig):+```++Defines the parameters for generating chat completions using OpenAI+compatibility with Minimax.++Reference: https://api.minimax.chat/document/guides/chat-model++**Parameters:**++- **temperature** (float, optional): Sampling temperature to use, between :obj:`0.0` and :obj:`1.0`. Higher values make the output more random, while lower values make it more focused and deterministic. Recommended to use :obj:`1.0`. Values outside this range will return an error. (default: :obj:`None`)+- **top_p** (float, optional): An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So :obj:`0.1` means only the tokens comprising the top 10% probability mass are considered. (default: :obj:`None`)+- **n** (int, optional): How many chat completion choices to generate for each input message. Only supports value :obj:`1`. (default: :obj:`None`)+- **response_format** (object, optional): An object specifying the format that the model must output. Setting to `{"type": "json_object"}` enables JSON mode, which guarantees the message the model generates is valid JSON. Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length. (default: :obj:`None`)+- **stream** (bool, optional): If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. (default: :obj:`None`)+- **stop** (str or list, optional): Up to :obj:`4` sequences where the API will stop generating further tokens. (default: :obj:`None`)+- **max_tokens** (int, optional): The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length. (default: :obj:`None`)+- **user** (str, optional): A unique identifier representing your end-user, which can help to monitor and detect abuse. (default: :obj:`None`)+- **tool_choice** (Union[dict[str, str], str], optional): Controls which (if any) tool is called by the model. :obj:`"none"` means the model will not call any tool and instead generates a message. :obj:`"auto"` means the model can pick between generating a message or calling one or more tools. :obj:`"required"` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. :obj:`"none"` is the default when no tools are present. :obj:`"auto"` is the default if tools are present.++**Note:**++Some OpenAI parameters such as presence_penalty, frequency_penalty,+and logit_bias will be ignored by Minimax.diff --git a/docs/mintlify/reference/camel.models.minimax_model.mdx b/docs/mintlify/reference/camel.models.minimax_model.mdxnew file mode 100644index 000000000..21ba96d9d--- /dev/null+++ b/docs/mintlify/reference/camel.models.minimax_model.mdx@@ -0,0 +1,41 @@+<a id="camel.models.minimax_model"></a>++<a id="camel.models.minimax_model.MinimaxModel"></a>++## MinimaxModel++```python+class MinimaxModel(OpenAICompatibleModel):+```++LLM API served by Minimax in a unified OpenAICompatibleModel+interface.++**Parameters:**++- **model_type** (Union[ModelType, str]): Model for which a backend is created.+- **model_config_dict** (Optional[Dict[str, Any]], optional): A dictionary that will be fed into:obj:`openai.ChatCompletion.create()`.+- **If**: obj:`None`, :obj:`MinimaxConfig().as_dict()` will be used. (default: :obj:`None`)+- **api_key** (Optional[str], optional): The API key for authenticating with the Minimax service. (default: :obj:`None`).+- **url** (Optional[str], optional): The url to the Minimax M2 service. (default: :obj:`None`)+- **token_counter** (Optional[BaseTokenCounter], optional): Token counter to use for the model. If not provided, :obj:`OpenAITokenCounter( ModelType.GPT_4O_MINI)` will be used. (default: :obj:`None`)+- **timeout** (Optional[float], optional): The timeout value in seconds for API calls. If not provided, will fall back to the MODEL_TIMEOUT environment variable or default to 180 seconds. (default: :obj:`None`)+- **max_retries** (int, optional): Maximum number of retries for API calls. (default: :obj:`3`) **kwargs (Any): Additional arguments to pass to the client initialization.++<a id="camel.models.minimax_model.MinimaxModel.__init__"></a>++### __init__++```python+def __init__(+ self,+ model_type: Union[ModelType, str],+ model_config_dict: Optional[Dict[str, Any]] = None,+ api_key: Optional[str] = None,+ url: Optional[str] = None,+ token_counter: Optional[BaseTokenCounter] = None,+ timeout: Optional[float] = None,+ max_retries: int = 3,+ **kwargs: Any+):+```diff --git a/docs/mintlify/reference/camel.types.enums.mdx b/docs/mintlify/reference/camel.types.enums.mdxindex 3c05c37da..35da593bb 100644--- a/docs/mintlify/reference/camel.types.enums.mdx+++ b/docs/mintlify/reference/camel.types.enums.mdx@@ -851,6 +851,16 @@ def is_aihubmix(self):Returns whether this platform is AihubMix.+<a id="camel.types.enums.ModelPlatformType.is_minimax"></a>++### is_minimax++```python+def is_minimax(self):+```++Returns whether this platform is Minimax M2.+<a id="camel.types.enums.AudioModelType"></a>## AudioModelTypediff --git a/docs/mintlify/reference/camel.types.unified_model_type.mdx b/docs/mintlify/reference/camel.types.unified_model_type.mdxindex 4a3979a69..159ffc6d0 100644--- a/docs/mintlify/reference/camel.types.unified_model_type.mdx+++ b/docs/mintlify/reference/camel.types.unified_model_type.mdx@@ -319,6 +319,16 @@ def is_crynux(self):Returns whether the model is a Crynux served model.+<a id="camel.types.unified_model_type.UnifiedModelType.is_minimax"></a>++### is_minimax++```python+def is_minimax(self):+```++Returns whether the model is a Minimax served model.+<a id="camel.types.unified_model_type.UnifiedModelType.support_native_structured_output"></a>### support_native_structured_output