Commit Graph
3 Commits
Author SHA1 Message Date
cat-shark 8007a6480c fix(models): support DeepSeek V4.1 vision and max effort
CI / typecheck (push) Failing after 51s
CI / format (push) Failing after 4s
CI / Oh My Pi compatibility (push) Failing after 1m7s
CI / CodeQL SAST (push) Failing after 26m15s
CI / Semgrep — pi extension audit (push) Failing after 8m15s
CI / Gitleaks — secrets scan (push) Failing after 8s
CI / Dependency review (push) Skipped
CI / npm audit (push) Failing after 6s
CI / Check lifecycle scripts (push) Failing after 2s
Refresh the generated capability catalog from command-code@1.44.0 to
1.53.1. deepseek/deepseek-v4.1-flash now advertises image input and its
low, high, and max reasoning efforts, so pi forwards attached images and
exposes the full thinking-level selector instead of reporting the model
as text-only without selectable levels. The sync also adds gpt-6-astra,
xai/grok-4.6, and inclusionai/ling-3.0-flash-sante:free metadata.

Drop the now-obsolete manual Meta Muse Spark effort overrides because
upstream publishes efforts for meta/muse-spark-1.1 through 1.3-contributor
and MiniMaxAI/MiniMax-M3, and add a regression test for the V4.1
capabilities.
2026-09-13 22:27:51 +08:00
8d26dbd374 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 <email@patwoz.de>
2026-09-03 13:30:09 +02:00
Patrick Wozniak d3c9832d28 feat(models): move manual reasoning efforts into a catalog override
PR #69 added efforts for meta/muse-spark-* directly to the generated
catalog, which the drift check flags and the daily sync job reverts.

Keep src/commandcode-catalog.ts byte-identical to upstream and merge a
separate src/commandcode-catalog-overrides.ts over it at load time. A
test fails as soon as upstream publishes efforts for an overridden model
so the override gets removed instead of shadowing the CLI catalog.

Verified against the live endpoint: pi --thinking xhigh sends
reasoning_effort="xhigh" for meta/muse-spark-1.2-contributor and the
request succeeds; --thinking off sends none.

Closes #69
2026-09-02 00:03:45 +02:00