From 01806579c333b4bb1c6ece731b8c6acbdd867bad Mon Sep 17 00:00:00 2001 From: Solaria Date: Sat, 14 Mar 2026 11:23:49 +0000 Subject: [PATCH] Remove OpenAI fallback - MiniMax only --- opus_orchestrator/config.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/opus_orchestrator/config.py b/opus_orchestrator/config.py index 516f8a9..ec2b325 100644 --- a/opus_orchestrator/config.py +++ b/opus_orchestrator/config.py @@ -101,26 +101,21 @@ def load_config_from_env() -> OpusConfig: """Load configuration from environment variables. Reads: - - MINIMAX_API_KEY or OPENAI_API_KEY for LLM + - MINIMAX_API_KEY for LLM - GITHUB_TOKEN for GitHub operations - Prefers MINIMAX_API_KEY (more cost-effective). + Uses MiniMax exclusively. """ - # Load API keys - prefer MiniMax by default - openai_key = _load_env("OPENAI_API_KEY") + # Load MiniMax API key minimax_key = _load_env("MINIMAX_API_KEY") - # Use MiniMax by default (cost-effective), fall back to OpenAI if needed + # Use MiniMax only if minimax_key: provider = "minimax" default_model = "MiniMax/MiniMax-M2.1" api_key = minimax_key - elif openai_key: - provider = "openai" - default_model = "gpt-4o" - api_key = openai_key else: - provider = "minimax" # Default to minimax + provider = "minimax" default_model = "MiniMax/MiniMax-M2.1" api_key = None