open-swe
open-swe copied to clipboard
feat: Add Ollama Provider Support for Local LLM Integration
Fixes #715
Owner: @bracesproul
Ollama Provider Integration
Overview
This pull request adds comprehensive support for Ollama local language models, enabling users to leverage local AI models within the Open SWE application when running in local mode.
Key Changes
- Installed
@langchain/ollamapackage - Updated provider system in
model-manager.ts - Created conditional model filtering system
- Modified UI configuration to dynamically show Ollama models
Features
- Added 9 Ollama models across different complexity levels
- Implemented local mode detection for model availability
- Supported models include:
- Qwen2.5-coder series (7b, 14b, 32b)
- GPT-OSS series (20b, 120b)
- DeepSeek-R1 series (8b, 14b, 32b, 70b)
Implementation Details
- Ollama models are only visible in local mode
- Strategically assigned models based on task complexity
- Maintained existing provider system architecture
- Ensured backward compatibility with current configuration
Verification
- Linting and formatting completed successfully
- All packages built without errors
- TypeScript compilation issues resolved
Next Steps
- Further testing of Ollama model performance
- Potential expansion of local model support
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| open-swe-web | Preview | Comment | Aug 19, 2025 7:00pm | |
| open-swe-web-langgraph | Preview | Comment | Aug 19, 2025 7:00pm |
@open-swe this is failing the formatting check. could you plz run yarn format to fix?
🤖 Your comment activated my productivity mode. Buckle up!
View run in Open SWE here (this URL will only work for @bracesproul)
Dev Metadata
{ "runId": "0198c8ca-a531-71d0-9042-5513591590c6", "threadId": "da9e3baa-f495-481a-86b0-89ee96998e2e" }
@open-swe , can you please make it work.
cc: @bracesproul
@open-swe can you take another look at this seems like its still failing the formatting check.
Thanks @cruzanstx, for triggerring the @open-swe again. But it isn't working at the moment. Would you mind resolving this as this will open doors for the open source community
cc: @bracesproul