fix: properly configure MiniMax API endpoint and CrewAI LLM #45

Merged
shoko merged 1 commits from fix/minimax-api-endpoint-v2 into main 2026-04-10 05:31:13 +02:00
Owner

Summary

Fixed MiniMax API integration issues.

Changes

1. API Endpoint

Changed from to

2. Default Model

Changed from to (Text-01 not available on all API key plans)

3. LLM Configuration (main fix)

Fixed CrewAI LLM configuration to properly use MiniMax's API.

Problem: Inheriting from CrewAI's class caused to be set to .

Solution: Use CrewAI's class directly with parameters:

Files Changed

    • removed inheritance, keep httpx implementation
    • use directly instead of
    • updated default model

Testing

Verified with curl that MiniMax-M2.7 works with api.minimax.io endpoint.

Closes #43

## Summary Fixed MiniMax API integration issues. ## Changes ### 1. API Endpoint Changed from to ### 2. Default Model Changed from to (Text-01 not available on all API key plans) ### 3. LLM Configuration (main fix) Fixed CrewAI LLM configuration to properly use MiniMax's API. **Problem:** Inheriting from CrewAI's class caused to be set to . **Solution:** Use CrewAI's class directly with parameters: ## Files Changed - - removed inheritance, keep httpx implementation - - use directly instead of - - updated default model ## Testing Verified with curl that MiniMax-M2.7 works with api.minimax.io endpoint. Closes #43
shoko added 1 commit 2026-04-10 05:27:18 +02:00
- Use CrewAI's LLM class directly with api_base parameter instead of custom subclass
- Remove broken MiniMaxLLM inheritance from LLM
- Update agent creation to use LLM(model, api_key, api_base) pattern

The issue was that inheriting from CrewAI's LLM class caused the api_base
to be set to None. Now we use CrewAI's LLM directly with the correct parameters.

Fixes #43
han approved these changes 2026-04-10 05:30:43 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit d1408b74b4 into main 2026-04-10 05:31:13 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/randebu#45