{"record":{"id":"1e0456c056ad976c","repo":"Fosowl/agenticSeek","slug":"minimax-is-not-available-for-local-use-change-con","errorCode":null,"errorMessage":"MiniMax is not available for local use. Change config.ini","messagePattern":"MiniMax is not available for local use\\. Change config\\.ini","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"sources/llm_provider.py","lineNumber":457,"sourceCode":"            raise Exception(f\"OpenRouter API error: {str(e)}\") from e\n\n    def minimax_fn(self, history, verbose=False):\n        \"\"\"\n        Use MiniMax API to generate text via OpenAI-compatible interface.\n\n        Supported models:\n        - MiniMax-M3: Latest flagship model with enhanced reasoning and coding (default)\n        - MiniMax-M2.7: Previous flagship, kept for compatibility\n        - MiniMax-M2.7-highspeed: High-speed version of M2.7 for low-latency scenarios\n\n        Note: temperature must be in range (0.0, 1.0], default is 1.0\n        \"\"\"\n        load_dotenv()\n        base_url = os.getenv(\"MINIMAX_BASE_URL\", \"https://api.minimax.io/v1\")\n\n        client = OpenAI(api_key=self.api_key, base_url=base_url)\n        if self.is_local:\n            raise Exception(\"MiniMax is not available for local use. Change config.ini\")\n        try:\n            response = client.chat.completions.create(\n                model=self.model,\n                messages=history,\n                temperature=1.0,\n            )\n            if response is None:\n                raise Exception(\"MiniMax response is empty.\")\n            thought = response.choices[0].message.content\n            if verbose:\n                print(thought)\n            return thought\n        except Exception as e:\n            raise Exception(f\"MiniMax API error: {str(e)}\") from e\n\n    def dsk_deepseek(self, history, verbose=False):\n        \"\"\"\n        Use: xtekky/deepseek4free","sourceCodeStart":439,"sourceCodeEnd":475,"githubUrl":"https://github.com/Fosowl/agenticSeek/blob/ae57a2357745a9706cb12d0fd76d954c84d166fa/sources/llm_provider.py#L439-L475","documentation":"minimax_fn refuses to run when self.is_local is True. MiniMax is a hosted cloud API accessed via its OpenAI-compatible endpoint, so a local configuration is rejected immediately with 'MiniMax is not available for local use. Change config.ini'.","triggerScenarios":"Calling minimax_fn while the minimax provider in config.ini has is_local set to True (or the provider is incorrectly resolved as local).","commonSituations":"User set a global local-mode flag applying to all providers; user copied a local provider block (e.g. lmstudio) and changed only the provider name; misunderstanding that MiniMax's OpenAI-compatible base URL means it can run locally.","solutions":["Set is_local=False for the minimax provider in config.ini","Confirm the provider block name matches the provider being used so the right flags apply","If offline inference is needed, switch to a genuinely local provider (LM Studio, Ollama)"],"exampleFix":"// before (config.ini)\n[minimax]\nis_local = True\n// after\n[minimax]\nis_local = False","handlingStrategy":"validation","validationCode":"cfg = config['minimax']\nif cfg.get('is_local', False):\n    raise SystemExit(\"minimax is cloud-only; set is_local = False in config.ini\")\nif not os.getenv('MINIMAX_API_KEY'):\n    raise SystemExit(\"MINIMAX_API_KEY not set\")","typeGuard":null,"tryCatchPattern":"try:\n    out = provider.minimax_fn(history)\nexcept Exception as e:\n    if 'not available for local use' in str(e):\n        log.error(\"Set is_local = False for minimax in config.ini\")\n    raise","preventionTips":["Never set is_local=True for cloud-only providers","Validate provider flags at config load time","Use provider config templates from the docs","Route offline workloads to genuinely local providers"],"tags":["configuration","minimax","cloud-only"],"backgroundTag":"provider-not-available-locally","analyzedSha":"ae57a2357745a9706cb12d0fd76d954c84d166fa","analyzedAt":"2026-08-30T02:49:05.834Z","schemaVersion":2},"datasetVersion":"2026-08-30T08:17:16.595Z"}