Skip to content

NEMAR: default to GPT-6 Luna - #532

Merged
neuromechanist merged 1 commit into
developfrom
feature/issue-530-nemar-luna
Sep 29, 2026
Merged

neuromechanist merged 1 commit into
developfrom
feature/issue-530-nemar-luna

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Closes #530.

What this does

NEMAR's default_model becomes openai.gpt-6-luna (GPT-6 Luna on Amazon Bedrock, maximum reasoning effort), as NWB's has been since #529. The config header says why and what the fallbacks are, and the changelog records it.

Routing (checked with the real router against NEMAR's config)

Request Model
Widget (platform funds it) GPT-6 Luna on Bedrock
CLI or caller with their own Anthropic key, no model named Claude Haiku 4.5
Deployment with no Bedrock key configured Claude Haiku 4.5 (the #527 fallback, logged at error level)

A caller who names a model is never silently switched.

Things to know

  • Figures. Non-Anthropic models cannot take image blocks, so on Luna the model no longer sees nemar_render_overview PNGs or browser-run figures. NEMAR's prompt already has it say so; the reader still sees the figure. NEMAR's browser code execution itself is not gated by provider.
  • Fallback is Haiku, not Sonnet. The fallback is the deployment-wide Claude default, so a CLI user on their own key now gets Haiku where they got Sonnet 5.5 (Offer Claude Sonnet 5.5 and default NEMAR to it #524). A per-community fallback would be a separate change.
  • Cost. Luna is priced below Haiku ($0.11 / $0.55 per 1M input / output tokens against $1 / $5), so the budget block (sized for Haiku) is unaffected, and NEMAR now costs less than it did on Sonnet.

Testing

uv run pytest tests -k "nemar or community_config or registry or bedrock_routing or model" -m "not network and not llm": 655 passed. ruff clean.

Refs #530. Tested: config and routing suites (655 passed); routing checked
for the widget (Luna), the CLI with an own Anthropic key (Haiku) and a server
with no Bedrock key (Haiku).
@neuromechanist
neuromechanist merged commit 5837e61 into develop Sep 29, 2026
15 of 20 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-530-nemar-luna branch September 29, 2026 13:21
neuromechanist added a commit that referenced this pull request Sep 30, 2026
)

* HED, EEGLAB and BIDS: default to GPT-6 Luna

Refs #559. Their default_model moves from claude-haiku-4-5 to
openai.gpt-6-luna, with reasoning_effort set to high as NWB does.
None of the three has a tool that returns an image, so Luna's lack of
image blocks loses nothing.

Tested: osa validate passes on each config (the expected Bedrock-default
warning only). Full suite to follow.

* NEMAR: stay on Claude Sonnet 5.5

Refs #559. Undoes #532 before it reaches main: default_model goes back
to claude-sonnet-5-5, so the model keeps seeing nemar_render_overview
and browser-run figures. The comments that described Luna are rewritten;
reasoning_effort stays high, which Sonnet is capped at anyway.

Tested: osa validate passes.

* Record the Luna defaults and NEMAR staying on Sonnet

Refs #559. Replaces the unreleased NEMAR-on-Luna changelog entry with one
for HED, EEGLAB and BIDS, and updates the ADR 0015 and changelog lists of
communities that set reasoning_effort explicitly.

* Update the Luna tests for HED, EEGLAB, BIDS and NEMAR

Refs #559. The shipped-communities Luna test named NWB and NEMAR; it now
names NWB, HED, EEGLAB and BIDS. The default-is-offered test runs on a
deployment that serves the Bedrock models, since HED's default is now one.

Tested: the two files plus test_bedrock_routing pass (124); the unit
suite had only these two failures before the fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant