Skip to content

fix(providers): refresh Neuralwatt models, reasoning replay and usage prices - #9036

Merged
lidge-jun merged 4 commits into
lidge-jun:devfrom
JakobM7:fix/neuralwatt-model-catalog
Nov 25, 2026
Merged

lidge-jun merged 4 commits into
lidge-jun:devfrom
JakobM7:fix/neuralwatt-model-catalog

Conversation

@JakobM7

@JakobM7 JakobM7 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Refreshes the Neuralwatt Cloud preset, which still seeded retired models.

  • Model catalog. The offline roster now matches Neuralwatt's live /v1/models chat models (23 ids incl. flex/speed variants and the nw-* tracking aliases), with published context windows, output limits, input modalities and reasoning ladders. Live discovery stays authoritative and now skips non-chat decision models (mammoth-1). An untouched earlier seed roster is refreshed at startup on the official endpoint; edited rosters and custom destinations are left alone.
  • Reasoning replay on Chat Completions. Prior reasoning was not replayed for DeepSeek V4.1 Flash (and nw-flash), although Neuralwatt and DeepSeek require it once tools are present. The replay list now covers the reasoning models Neuralwatt documents. Gemma 4 stays off the list, following Google's guidance to strip thoughts between turns.
  • Kimi sampling. Kimi K3.1 Pro (nw-large) and the redirected kimi-k2.7-code omit temperature, top_p and penalties, matching Moonshot's fixed sampling and the existing Moonshot preset.
  • Usage estimates. Neuralwatt bills by GPU energy, but its catalog publishes per-token list prices. These are recorded as verified-derived expected prices so usage rows show a list-price estimate instead of no cost.
  • qwen3.6-35b keeps its existing thinking_budget path; the preset stays on the Chat Completions wire.
  • Docs: the API-key catalog note is added in English and Spanish (the only locales with that page), and structure/dashboard-and-usage.md and structure/providers-and-adapters.md record the price estimates and the roster refresh.

Sources: https://api.neuralwatt.com/v1/models (2026-11-21), https://docs.neuralwatt.com/api/chat-completions, https://api-docs.deepseek.com/guides/thinking_mode, https://platform.kimi.ai/docs/guide/use-kimi-k2-thinking-model

Verification

  • bun run typecheck, bun run typecheck:tsc: pass
  • bun test tests/providers/registry-transport-alias.test.ts tests/providers/provider-registry-parity.test.ts tests/providers/model-discovery-skip-invalid-rows.test.ts tests/codex-integration/reasoning-effort.test.ts tests/ci-workflows/import-cycle-ratchet.test.ts tests/ci-workflows/structure-ssot.test.ts tests/ci-workflows/repo-hygiene.test.ts tests/test-layout.test.ts (Bun 1.4.4): 264 pass
  • bun test tests/ci-workflows/docs-spanish-localization.test.ts: 54 pass
  • bun run structure:check, file-size ratchet, bun run privacy:scan, bun run skill:surface:check, bun run docs:clients:check: pass
  • cd docs-site && bun install --frozen-lockfile && bun run build: pass
  • GUI checks: skipped by typecheck:gui:if-changed / lint:gui:if-changed / doctor:gui:if-changed (no gui/ changes)
  • Full suite (bun run test, Bun 1.4.4, Linux): run on this change and on the unchanged dev base. Both ended with exit 124 and 294 failing tests in this environment; the failing sets match except route-to-child-defaults "turning Desktop off on a first-party Home…", which also fails in isolation on unchanged dev (3/3). A Spanish localization failure found by this run is fixed in this PR. The completed full-suite result is left to CI.
  • Not covered: live requests against Neuralwatt with an API key.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

🤖 Generated with Claude Code

Review readiness checklist

This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:

  • Required local validation passed; commands, results, and any full-suite exception are documented.

  • I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).

  • I resolved all correct Codex and CodeRabbit findings.

  • My PR is ready for review.

Summary by CodeRabbit

  • New Features
    • Neuralwatt model catalogs now reflect available chat models, with updated support for model capabilities and reasoning behavior.
    • Existing saved Neuralwatt model selections are updated when they match the previous default roster; custom destinations and explicit context settings are preserved.
    • Token-based cost estimates are available for Neuralwatt models, including flexible-price variants.
  • Documentation
    • Neuralwatt’s model discovery, fallback models, reasoning behavior, and Kimi K3.1 Pro sampling settings are documented. Cost estimates are distinguished from Neuralwatt’s GPU-energy-based charges.

… prices

Refresh the Neuralwatt offline roster from its live /v1/models catalog and skip
non-chat decision models during discovery. Replay prior reasoning on Chat
Completions for the documented reasoning models, including DeepSeek V4.1 Flash
and its nw-flash alias. Keep the Kimi K3.1 Pro sampling rules and the legacy
kimi-k2.7-code rules, and keep qwen3.6-35b on its thinking_budget path.
Refresh only an untouched earlier seed roster.

Neuralwatt bills by GPU energy, but its catalog publishes per-token list prices.
Record them as verified-derived expected prices so usage rows show the
list-price equivalent instead of no cost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between db62791 and 1e948af.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Neuralwatt now uses live model discovery with seeded capability hints and a migration for matching saved rosters. The change also adds verified-derived token-price estimates, updates provider documentation, and expands tests for discovery, routing, reasoning replay, migration, and prices.

Changes: Neuralwatt provider

Layer / File(s) Summary
Seeded model hints and live discovery
src/providers/registry/model-seeds.ts, src/providers/registry/entries-core.ts, tests/providers/provider-registry-parity.test.ts, tests/providers/registry-transport-alias.test.ts, docs-site/src/content/docs/guides/api-key-catalog.md
Family definitions now derive the fallback roster and capability hints. The registry uses live discovery and filters out models with the decision task capability. Tests cover the roster, model settings, discovery, and reasoning replay. The guide describes discovery, fallback behavior, sampling restrictions, reasoning replay, and cost estimates.
Saved-roster migration
src/providers/stale-model-roster-migration.ts, tests/providers/registry-transport-alias.test.ts, structure/providers-and-adapters.md
A matching prior Neuralwatt seed can be replaced with the current hinted roster and its context, output, and default reasoning settings. Tests check migration projection. The provider notes describe the matching API destination and the limits of the repair.
Token-price estimates
src/usage/expected-prices.ts, tests/providers/registry-transport-alias.test.ts, structure/dashboard-and-usage.md
Neuralwatt model prices are added as verified-derived estimates, including flex variants. Tests check price coverage and a flex-model price. The usage documentation notes that these estimates do not represent GPU-energy charges.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Merge Risk: Minimal · previous review b5312

This change refreshes the Neuralwatt model catalog, reasoning replay, sampling rules and usage price estimates. No merge-blocking issue was found. Live Neuralwatt behavior and the CI result remain to be confirmed.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: refreshing Neuralwatt models, reasoning replay, and usage prices. The changeset updates the Neuralwatt registry roster (model-seeds.ts, entries-core.ts, stale-model-ro…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: refreshing Neuralwatt models, reasoning replay, and usage prices. The changeset updates the Neuralwatt registry roster (model-seeds.ts, entries-core.ts, stale-model-roster-migration.ts), extends reasoning replay, and adds verified-derived expected prices in expected-prices.ts. The title is specific and concise, and it matches the PR objectives. The 'fix(providers):' prefix follows conventional commit style. Some secondary details, such as Kimi sampling omissions and the Spanish docs, are not named, which is acceptable because the title does not need to cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b426995 and b5312cd.

Files selected for processing: 10

  • docs-site/src/content/docs/es/guides/api-key-catalog.md
  • docs-site/src/content/docs/guides/api-key-catalog.md
  • src/providers/registry/entries-core.ts
  • src/providers/registry/model-seeds.ts
  • src/providers/stale-model-roster-migration.ts
  • src/usage/expected-prices.ts
  • structure/dashboard-and-usage.md
  • structure/providers-and-adapters.md
  • tests/providers/provider-registry-parity.test.ts
  • tests/providers/registry-transport-alias.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Nov 21, 2026
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ READY

  • all PR quality gates passed; the review readiness checklist is complete.

Review readiness checklist

  • ✅ Required local validation passed; commands, results, and any full-suite exception are documented.
  • ✅ I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
  • ✅ I resolved all correct Codex and CodeRabbit findings.
  • ✅ My PR is ready for review.

✅ 4/4 boxes ticked.

This pull request has been marked Ready for Review.
The review-ready label marks this PR as ready; review automation runs independently.
Maintainers notified: @lidge-jun @Ingwannu

Hygiene

✅ Deterministic PR hygiene checks passed.

@github-actions
github-actions Bot marked this pull request as ready for review November 25, 2026 05:37
@github-actions
github-actions Bot marked this pull request as draft November 25, 2026 05:53
@github-actions
github-actions Bot marked this pull request as ready for review November 25, 2026 06:34
@github-actions
github-actions Bot marked this pull request as draft November 25, 2026 06:42
@github-actions
github-actions Bot marked this pull request as ready for review November 25, 2026 07:37
@lidge-jun

Copy link
Copy Markdown
Owner

Maintainer integration into dev (MAINTAINERS.md, dev-only path), recorded before merge.

  • Head: 1e948af58d754c12a701d89f4041e2dbf05ee8f5. It is 4 commits behind dev at a79dde2301.
  • PR checks passing on this head: Catalog async contracts (ubuntu-latest), api usage, changes, ci, docker smoke, docs site build, enforce / enforce-target, enforce / resolve-pr, gates, hygiene / hygiene, label / label, npm-global ubuntu-latest, select windows runner, storage policy, structure gate, test changed, validate-source. The remaining jobs were skipped by the PR lane policy.
  • scripts/ci/assert-mergeable-review.sh --maintainer-integration 9036: OK: validation snapshot for fix(providers): refresh Neuralwatt models, reasoning replay and usage prices #9036 into dev at head 1e948af…
  • Local checks on the earlier head b5312cd9c2: bun run typecheck found no errors in 2,703 files. bun run test:changed ran 61,457 tests across 2,628 files: 61,151 passed, 298 skipped, and 8 failed. Seven of the failures also occur on plain dev on this host or come from the environment (codex-composed-acceptance, serving-runtimes, codex-cli-update-apply, ocx-child cargo/Rust). The eighth, link-pinned-sync-argv, reran green (16/16).
  • The regression was confirmed red to green. With src/providers/stale-model-roster-migration.ts reverted to dev, "Neuralwatt refreshes only the old seed" fails, and it passes with the change.
  • On this head, CI test changed first failed in tests/server/bounded-body.test.ts ("keeps the inter-chunk inactivity deadline after the first byte"), a timing test that this PR does not reach. It passed 54/54 three times locally on this head, and the rerun of the failed job passed.
  • The relaxed behind-dev gate was checked before merging:
    • (a) head 1e948af is 4 commits behind dev a79dde2: perf(windows): opt in to batching private ACL restrictions #8996 fix(adapters): share schema normalization budgets across tool definitions #9063 feat(i18n): add Spanish dashboard and README #8706 fix(link): restore guarded stop cleanup with native Windows owner proof #8933
    • (b) git merge-tree --write-tree a79dde2 1e948af: clean
    • (c) intervening dev commits change 122 files; overlap with PR files: structure/dashboard-and-usage.md,structure/providers-and-adapters.md; shared-class files touched by the PR: none
    • (d) on local unpushed merge 4fbd69a51e (1e948af + dev a79dde2): typecheck: ✓ No type errors in 2,711 files [6.86s]; structure:check: structure/ SSOT checks passed; tests: providers/registry-transport-alias.test.ts 8 pass 0 fail ;providers/provider-registry-parity.test.ts 65 pass 0 fail ;providers/model-discovery-skip-invalid-rows.test.ts 16 pass 0 fail ;ci-workflows/docs-429-failover-claims.test.ts 4 pass 0 fail ;ci-workflows/docs-bun-source-requirement.test.ts 4 pass 0 fail ;ci-workflows/docs-developer-role-policy.test.ts 30 pass 0 fail ;ci-workflows/docs-gjc-reasoning-export.test.ts 1 pass 0 fail ;ci-workflows/docs-gpt61-terra.test.ts 27 pass 0 fail ;ci-workflows/docs-gui-screenshot-policy.test.ts 1 pass 0 fail ;ci-workflows/docs-link-targets.test.ts 8 pass 0 fail ;ci-workflows/docs-navigation-label.test.ts 6 pass 0 fail ;ci-workflows/docs-provider-billing-claims.test.ts 6 pass 0 fail ;ci-workflows/docs-provider-discovery-limits.test.ts 118 pass 0 fail ;ci-workflows/docs-provider-preset-counts.test.ts 20 pass 0 fail ;ci-workflows/docs-readme-memory-inventory.test.ts 37 pass 0 fail ;ci-workflows/docs-readme-translation-parity.test.ts 60 pass 0 fail ;ci-workflows/docs-remote-hub-claims.test.ts 58 pass 0 fail ;ci-workflows/docs-spanish-localization.test.ts 55 pass 0 fail ;ci-workflows/docs-telemetry-dashboard.test.ts 14 pass 0 fail ;ci-workflows/docs-telemetry-leaderboard.test.ts 6 pass 0 fail ;test-layout.test.ts 2 pass 0 fail ;test-layout-tooling.test.ts 27 pass 0 fail ;ci-workflows/file-size-ratchet.test.ts 9 pass 0 fail ;ci-workflows/skill-ocx.test.ts 15 pass 0 fail
    • Overlap is limited to structure prose docs, under the coordinator's prose-overlap ruling. The hunks are in different paragraphs: structure/dashboard-and-usage.md dev at line 22 and this PR at line 334; structure/providers-and-adapters.md dev at line 317 and this PR at line 399. Merge-tree is clean. structure:check, typecheck, the focused tests, all 17 tests/ci-workflows/docs-*.test.ts files and the layout, ratchet and skill-ocx guards pass on the temporary merge: 24 test files, 0 failures.
  • Independent review (GPT-6.1 Terra): no code findings, and the only SHOULD (regression red/green) is now verified above. The roster, prices and context windows match Neuralwatt's public /v1/models catalog, and the migration replaces only an untouched old seed on the official endpoint.
  • I ticked the readiness checklist after doing this validation myself.

@lidge-jun
lidge-jun merged commit 20098e3 into lidge-jun:dev Nov 25, 2026
53 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working review-ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants