Skip to content

Commit 8835d7a

Browse files
committed
Opt out of block_binding for Opus 5.5 in opencode
opencode injects a block_binding field under adaptive thinking that Opus 5.5 rejects with "thinking.adaptive.block_binding: Extra inputs are not permitted" (anomalyco/opencode#46729). Set blockBinding false on the model to omit it (anomalyco/opencode#46820). The model comes from models.dev rather than the bridge plugin, so this override doesn't collide with the plugin's built-in model list. Signed-off-by: Nic Cope <[email protected]>
1 parent cabf266 commit 8835d7a

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎users/negz/configuration.nix‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,22 @@ in
324324
};
325325
};
326326
};
327+
# Opus 5.5 rejects the block_binding field opencode injects under
328+
# adaptive thinking (see anomalyco/opencode#46729). Opt out per
329+
# anomalyco/opencode#46820. The model comes from models.dev, not the
330+
# bridge, so this override doesn't collide with the plugin's list.
331+
provider = {
332+
anthropic = {
333+
models = {
334+
"claude-opus-5-5" = {
335+
options.thinking = {
336+
type = "adaptive";
337+
blockBinding = false;
338+
};
339+
};
340+
};
341+
};
342+
};
327343
permission = {
328344
edit = "allow";
329345

0 commit comments

Comments
 (0)