ductor icon indicating copy to clipboard operation
ductor copied to clipboard

[Feature]: Claude Code with 1M context support

Open b1naryTR opened this issue 8 months ago • 2 comments

Problem or motivation

I believe there is currently no way to use 1M context models instead of 200K ones since model is selected through the UI, not passed as string. Changing the model on config didn't work either.

Proposed solution

There is only 2 more options needed on model selector, "opus[1m]" and "sonnet[1m]", everything else should work fine since it can just be passed to cli anyways

Alternatives considered

No response

Before submitting

  • [x] I have searched existing issues and feature requests for duplicates.

b1naryTR avatar Mar 17 '26 13:03 b1naryTR

Shipped in v0.16.0 (commit fd80c42). opus[1m] and sonnet[1m] appear in the /model selector and route via Claude CLI with the 1M-context beta header. Pure pass-through: Claude CLI strips the [1m] suffix and sets the header internally, so there's nothing special on our side. Haiku intentionally omitted (no upstream 1M variant yet). Switch with /model → verify with a prompt over ~200k tokens.

PleasePrompto avatar Apr 21 '26 10:04 PleasePrompto

Shipped in v0.16.0 (commit fd80c42).

opus[1m] and sonnet[1m] now appear in the /model selector. Routing is pure pass-through: Claude CLI strips the [1m] suffix and sets the 1M-context beta header internally, so there's nothing special on our side. Haiku intentionally omitted (no upstream 1M variant yet). Switch with /model, verify with a prompt over ~200k tokens — it Just Works.

PleasePrompto avatar Apr 21 '26 10:04 PleasePrompto