[GH-ISSUE #6869] Add Claude Sonnet 5.5 (claude-sonnet-5-5) for Anthropic #3849

Closed
opened 2026-10-21 06:08:09 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6869

Originally assigned to: @SpicyMarinara on GitHub.

Request

Add Claude Sonnet 5.5 (claude-sonnet-5-5, released 2026-09-28) for the Anthropic and Claude (Subscription) providers.

Sources: the model page and What's new in Claude Sonnet 5.5.

  • 1M context, 128K output. Adaptive thinking on by default, default effort high, effort low…max.
  • A non-default temperature, top_p or top_k returns a 400.
  • thinking: {"type": "disabled"} returns a 400. Up-front thinking is turned off with thinking: {"type": "between_tools"}, which takes no other fields and only works at low/medium/high effort.
  • Forced tool_choice any/tool returns a 400. auto and none still work.
  • Mid-conversation system messages are supported (Sonnet 5 doesn't support them).
  • Thinking blocks are bound to the model and conversation. Marinara doesn't replay thinking blocks, so this doesn't affect it.

What Marinara needs

The existing Claude 5 pattern (claude-(opus|sonnet)-5…) already matches claude-sonnet-5-5, so sampling stripping and xhigh/max apply. On its own it would send {type: "disabled"} for Off, which would 400. Needed:

  • Catalog entries for Anthropic and Claude (Subscription).
  • Off sent as between_tools on the direct Anthropic API. The Claude Agent SDK used by the subscription provider (0.3.282) and OpenAI-compatible gateways can't express between_tools, so there Off falls back to adaptive thinking at low effort, as for Opus 5.5.
  • Forced tool choice downgraded to auto, and history-level system messages allowed.
  • Gateway requests (OpenRouter/Custom) normalized like Opus 5.5.
Originally created by @SpicyMarinara on GitHub (Sep 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6869 Originally assigned to: @SpicyMarinara on GitHub. ## Request Add **Claude Sonnet 5.5** (`claude-sonnet-5-5`, released 2026-09-28) for the Anthropic and Claude (Subscription) providers. Sources: the [model page](https://platform.claude.com/docs/en/models/sonnet-5-5/overview) and [What's new in Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/whats-new-sonnet-5-5). - 1M context, 128K output. Adaptive thinking on by default, default effort `high`, effort `low`…`max`. - A non-default `temperature`, `top_p` or `top_k` returns a 400. - **`thinking: {"type": "disabled"}` returns a 400.** Up-front thinking is turned off with `thinking: {"type": "between_tools"}`, which takes no other fields and only works at `low`/`medium`/`high` effort. - Forced `tool_choice` `any`/`tool` returns a 400. `auto` and `none` still work. - Mid-conversation system messages are supported (Sonnet 5 doesn't support them). - Thinking blocks are bound to the model and conversation. Marinara doesn't replay thinking blocks, so this doesn't affect it. ## What Marinara needs The existing Claude 5 pattern (`claude-(opus|sonnet)-5…`) already matches `claude-sonnet-5-5`, so sampling stripping and `xhigh`/`max` apply. On its own it would send `{type: "disabled"}` for Off, which would 400. Needed: - Catalog entries for Anthropic and Claude (Subscription). - Off sent as `between_tools` on the direct Anthropic API. The Claude Agent SDK used by the subscription provider (0.3.282) and OpenAI-compatible gateways can't express `between_tools`, so there Off falls back to adaptive thinking at `low` effort, as for Opus 5.5. - Forced tool choice downgraded to `auto`, and history-level system messages allowed. - Gateway requests (OpenRouter/Custom) normalized like Opus 5.5.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3849
No description provided.