agent_crew
agent_crew copied to clipboard
feat: Ollama as model provider option in TeamBuilder
Summary
Add Ollama as a model provider option in the TeamBuilder page, with a curated list of lightweight open-source models.
Scope
1. Ollama Card in Model Provider Selector
- New card with orange color scheme
- Title: "Ollama"
- Subtitle: "Local open-source models. No API key required."
- Data-testid:
model-provider-card-ollama
2. Curated Model List
const OLLAMA_MODELS = [
{ value: 'ollama/devstral', label: 'Devstral', size: '~14 GB' },
{ value: 'ollama/qwen3:8b', label: 'Qwen 3 8B', size: '~5 GB' },
{ value: 'ollama/llama3.3:8b', label: 'Llama 3.3 8B', size: '~5 GB' },
{ value: 'ollama/codellama:13b', label: 'Code Llama 13B', size: '~7 GB' },
{ value: 'ollama/mistral:7b', label: 'Mistral 7B', size: '~4 GB' },
];
Models are selected for:
- Size < 20GB (suitable for 16GB+ RAM machines)
- Strong coding capabilities
- Active maintenance
3. Model Selector UI Differences
- Show estimated model size next to each model name
- No credential warning (Ollama needs no API key)
- Optional: show Ollama status indicator (running/stopped, which models already pulled) via
GET /api/ollama/status
4. Types
Add 'ollama' to the ModelProvider type union (should already be there from F1-3).
Add to OPENCODE_MODELS_BY_PROVIDER:
ollama: OLLAMA_MODELS.map(m => ({ value: m.value, label: `${m.label} (${m.size})` })),
Acceptance Criteria
- [ ] Ollama card appears in model provider selector
- [ ] Selecting Ollama shows curated model list with sizes
- [ ] No credential warning for Ollama
- [ ] Ollama status indicator shows when available
- [ ] Tests cover Ollama selection flow
- [ ]
model_provider: "ollama"included in create team payload
Dependencies
- Depends on helmcode/agent_crew#53 (model provider selector base)
References
- Plan: Model Provider Constraint + Ollama Support (Phase 2, Issue F2-4)
Implemented in Phase 2. Ollama card + curated model list in TeamBuilder.