mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
isOpencodeModel was rejecting valid dynamic model IDs like 'openrouter/qwen/qwen3-14b:free' because it was splitting on all slashes and expecting exactly 2 parts. This caused valid OpenCode models to be treated as unknown, falling back to Claude. Now correctly splits on the FIRST slash only, allowing model names like 'qwen/qwen3-14b:free' to be recognized as valid. Fixes: User selects openrouter/qwen/qwen3-14b:free → server falls back to Claude Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>