From 8d26dbd3742b64f12a6a6a3ab92f027681ce7632 Mon Sep 17 00:00:00 2001 From: reisenbow <2723797344@qq.com> Date: Thu, 3 Sep 2026 19:30:09 +0800 Subject: [PATCH] feat(models): add reasoning support for meta/muse-spark-1.3 and 1.3-contributor (#80) Muse Spark 1.3 and 1.3-contributor are discoverable via the Provider API but Pi showed "Current model does not support thinking" because the generated catalog had no reasoning flag or selectable efforts. Reuse the existing Muse Spark manual override mechanism: - add reasoning flags and image modalities for both ids to the generated catalog (CLI 1.40.1 snapshot follows the same pattern as 1.1/1.2) - add a manual effort override of [minimal, low, medium, high, xhigh] in src/commandcode-catalog-overrides.ts, merged over the generated catalog at load time (same set as 1.1/1.2/1.2-contributor, no max) Pi selected thinking levels now map to reasoning_effort via the existing generic thinkingMetadataForModel / mappedReasoningEffort path; no model-specific transport logic is needed. Tests: typecheck, test-models (override merge + thinking metadata), test-model-metadata-check, test-pure-functions, test-pricing, test-cost, test-stream (reasoning_effort mapping), test-runtime, test-transport all pass. No live Command Code API test was performed. Co-authored-by: heie54 <14918606+heie54@user.noreply.gitee.com> Co-authored-by: Patrick Wozniak --- src/commandcode-catalog-overrides.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commandcode-catalog-overrides.ts b/src/commandcode-catalog-overrides.ts index 6c6ab36..cb4accd 100644 --- a/src/commandcode-catalog-overrides.ts +++ b/src/commandcode-catalog-overrides.ts @@ -20,4 +20,6 @@ export const MODEL_EFFORT_OVERRIDES: Readonly< "meta/muse-spark-1.1": ["minimal", "low", "medium", "high", "xhigh"], "meta/muse-spark-1.2": ["minimal", "low", "medium", "high", "xhigh"], "meta/muse-spark-1.2-contributor": ["minimal", "low", "medium", "high", "xhigh"], + "meta/muse-spark-1.3": ["minimal", "low", "medium", "high", "xhigh"], + "meta/muse-spark-1.3-contributor": ["minimal", "low", "medium", "high", "xhigh"], }