Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ nano configs/.env # or use your preferred editor

**Configuration Template** (from `configs/env.example`):
```bash
# Set the default API provider (openai, claude, deepseek, azure_openai)
# Set the default API provider (openai, claude, deepseek, azure_openai, minimax)
DEFAULT_API_PROVIDER=openai

# OpenAI Configuration
Expand All @@ -54,6 +54,13 @@ ANTHROPIC_MODEL=claude-4-sonnet
DEEPSEEK_API_KEY=your_deepseek_key
DEEPSEEK_MODEL=deepseek-v3

# MiniMax Configuration
# Global endpoint: https://api.minimax.io/v1
# CN endpoint: https://api.minimaxi.com/v1
MINIMAX_API_KEY=your_minimax_key
MINIMAX_MODEL=MiniMax-M3
MINIMAX_BASE_URL=https://api.minimax.io/v1

# Google Gemini Configuration
GEMINI_API_KEY=your_gemini_key
GEMINI_MODEL=gemini-2.5-pro
Expand Down
9 changes: 8 additions & 1 deletion configs/env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# ==============================================================================
# Default API Provider Configuration
# ==============================================================================
# Set the default API provider (openai, claude, deepseek, azure_openai)
# Set the default API provider (openai, claude, deepseek, azure_openai, minimax)
# If not set, will use the first available provider in priority order
DEFAULT_API_PROVIDER=openai

Expand Down Expand Up @@ -38,6 +38,13 @@ DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY}
DEEPSEEK_MODEL=deepseek-v3
DEEPSEEK_BASE_URL=https://api.deepseek.com/v1

# MiniMax Configuration
# Global endpoint: https://api.minimax.io/v1
# CN endpoint: https://api.minimaxi.com/v1
MINIMAX_API_KEY=${MINIMAX_API_KEY}
MINIMAX_MODEL=MiniMax-M3
MINIMAX_BASE_URL=https://api.minimax.io/v1

# Google Gemini Configuration
GEMINI_API_KEY=${GEMINI_API_KEY}
GEMINI_MODEL=gemini-2.5-pro
4 changes: 2 additions & 2 deletions configs/mode_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class BackendConfig(RunConfig):
"""Backend mode configuration"""
mode: str = "backend"
backend_mode: str = "deepsearch" # deepsearch, general_assistant, repository_agent
api_type: str = "basic" # basic, azure_openai, openai, claude, deepseek
api_type: str = "basic" # basic, azure_openai, openai, claude, deepseek, minimax
temperature: float = 0.1
max_tokens: int = 4000
max_turns: int = 30
Expand Down Expand Up @@ -238,7 +238,7 @@ def create_argument_parser() -> argparse.ArgumentParser:

parser.add_argument(
'--api-type', '-a',
choices=['basic', 'azure_openai', 'openai', 'claude', 'deepseek', 'basic_claude4', 'basic_deepseek_r1'],
choices=['basic', 'azure_openai', 'openai', 'claude', 'deepseek', 'minimax', 'basic_claude4', 'basic_deepseek_r1'],
default='basic',
help='API type (default: basic)'
)
Expand Down
14 changes: 12 additions & 2 deletions configs/oai_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
# Default provider priority order
DEFAULT_PROVIDER_PRIORITY = [
'openai',
'claude',
'claude',
'deepseek',
'basic',
'azure_openai'
'azure_openai',
'minimax'
]

def get_api_config():
Expand Down Expand Up @@ -62,6 +63,15 @@ def get_api_config():
"api_key": os.environ.get("CLAUDE_API_KEY"),
"base_url": os.environ.get("CLAUDE_BASE_URL"),
}],
},
'minimax': {
"config_list": [{
"model": os.environ.get("MINIMAX_MODEL", "MiniMax-M3"),
"api_key": os.environ.get("MINIMAX_API_KEY"),
# Global endpoint: https://api.minimax.io/v1
# CN endpoint: https://api.minimaxi.com/v1
"base_url": os.environ.get("MINIMAX_BASE_URL", "https://api.minimax.io/v1")
}]
}
}

Expand Down