feat: add Synthetic LLM provider support#162
Conversation
Add support for Synthetic as a first-class provider with models: - synthetic/hf:moonshotai/Kimi-K2.5 (coordinator/worker) - synthetic/hf:deepseek-ai/DeepSeek-V3.2 (coordinator) - synthetic/hf:MiniMaxAI/MiniMax-M2.1 (worker/lite) - synthetic/hf:Qwen/Qwen3-Coder-480B-A35B-Instruct (worker/lite) Includes test coverage and proper changeset. Refs: joelhooks#148, joelhooks#150
|
Someone is attempting to deploy a commit to the joelhooks' projects Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughAdds Synthetic as a first-class LLM provider to swarm-tools, registering new Synthetic models (Kimi K2.5, DeepSeek V3.2, MiniMax M2.1, Qwen3 Coder 480B) across coordinator/worker/lite selections and adding tests to verify explicit synthetic model selection. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@packages/opencode-swarm-plugin/bin/swarm.ts`:
- Around line 375-384: The WORKER_MODELS constant is missing the Qwen3-Coder
entry while the interactive worker selection includes
"synthetic/hf:Qwen/Qwen3-Coder-480B-A35B-Instruct"; add that same value and
label to the WORKER_MODELS array so both lists stay consistent (update the
WORKER_MODELS entry list to include value
"synthetic/hf:Qwen/Qwen3-Coder-480B-A35B-Instruct" and a matching label like
"Synthetic Qwen3-Coder"), ensuring any code that reads WORKER_MODELS (e.g.,
validation or listings) will recognize the model.
🧹 Nitpick comments (1)
.changeset/add-synthetic-provider.md (1)
1-39: Well-documented changeset with comprehensive details.The changeset clearly describes what changed, why it matters, usage instructions, and requirements. The 🐝 emoji is appropriately included per coding guidelines.
One optional enhancement: The coding guidelines suggest including a quote from
pdf-brain.pdffor context. If there's a relevant passage about multi-agent coordination or provider flexibility, consider adding it for thematic consistency.,
Adds synthetic/hf:Qwen/Qwen3-Coder-480B-A35B-Instruct to WORKER_MODELS array to maintain consistency with interactive selection prompts. Refs: CodeRabbit feedback on PR joelhooks#162
Add descriptive JSDoc comments to COORDINATOR_MODELS and WORKER_MODELS constants for better documentation and CodeRabbit coverage. Refs: CodeRabbit feedback on PR joelhooks#162
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
Insted of having an hardcoded list of models shouldn't be way better to run |
Summary
Add support for Synthetic as a first-class LLM provider in swarm-tools.
New Models Added
Coordinator Models:
synthetic/hf:moonshotai/Kimi-K2.5- Strong reasoning modelsynthetic/hf:deepseek-ai/DeepSeek-V3.2- Advanced reasoningWorker Models:
synthetic/hf:moonshotai/Kimi-K2.5- Strong reasoningsynthetic/hf:MiniMaxAI/MiniMax-M2.1- Fast and cost-effectivesynthetic/hf:Qwen/Qwen3-Coder-480B-A35B-Instruct- Powerful coding modelLite Models:
synthetic/hf:MiniMaxAI/MiniMax-M2.1- Fast and cost-effectivesynthetic/hf:Qwen/Qwen3-Coder-480B-A35B-Instruct- Powerful coding modelWhy
https://api.synthetic.new/openai/v1Testing
swarm setupflowRefs: #148, #150
Summary by CodeRabbit
New Features
Documentation
Tests