CrewAI
CrewAI builds crews of role-playing agents that hand
work to each other. Point its LLM class at Hyphen and every agent in the crew
uses it.
Code
Setup guide: this config comes from CrewAI's official documentation and has not been run end to end against the gateway. Corrections to support@hyphen-solution.com.
The model
Code
On the openai/ prefix and custom_openai
CrewAI 1.x infers a provider from the model string. A name with no slash falls
through to an OpenAI-shaped client by default, so bare model="minimax-m3"
usually works. Do not rely on inference.
custom_openai=True forces the native OpenAI client and makes base_url
mandatory, which is exactly the behaviour you want for a gateway. The openai/
prefix is stripped before the request, so Hyphen still receives minimax-m3.
If custom_openai is rejected by your installed version, drop the flag and use
model="minimax-m3" with no prefix.
A crew
Code
Mixing models in one crew
Crews are where per-agent model choice actually pays off. Put the flagship on the agent that plans, and the fast model on the agents that do bulk work.
Code
Both meter at the same per-token rate. The saving is that minimax-m2.5 is
terser, not that it is cheaper per token. See
Choosing a model.
Watch the budget
Crews are the easiest way to spend a monthly cap by accident. Every agent handoff is a fresh request carrying the accumulated context, so a five-agent crew on a long task can burn through tokens fast.
Two things help. Set max_iter on agents so a stuck agent cannot loop forever,
and test with minimax-m2.5 before switching the crew to minimax-m3.
Code
The hard cap is still the backstop. A runaway crew returns 429 rather than an invoice. See Rate limits & caps.
Gotchas
max_tokensof 4000. CrewAI agents use tools heavily and the M-series reason before every call. See Choosing a model.- No embedding models. CrewAI's memory features need an embedder. Configure a local or third-party one, since the Hyphen catalog has none.
429means the monthly budget is spent. See Handling the 429 cap.
Related
- CrewAI LLM docs
- CrewAI LLM connections
- Choosing a model: which agent gets which model.