Skip to content

feat(anthropic): add Claude Opus 5.5 - #3919

Merged
WH-2099 merged 1 commit into
mainfrom
feat/anthropic-opus-5-5
Oct 9, 2026
Merged

WH-2099 merged 1 commit into
mainfrom
feat/anthropic-opus-5-5

Conversation

@WH-2099

@WH-2099 WH-2099 commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #3916.

Adds claude-opus-5-5 with a 1M-token context, 128K-token output limit, always-on adaptive thinking, and a medium effort default, following the official specifications.
The model uses the existing adaptive-thinking, structured-output, task-budget, and automatic tool-choice paths.
Standard input/output pricing is $4/$20 per million tokens, with cache reads charged at 5% of the input rate.

Signed-state replay and Agent tool-loop fixes are tracked in #4032 and draft PR #4034.
This model registration uses published dependencies and can be reviewed independently of that work.

Release Notes

  • Add Claude Opus 5.5 with a 1M-token context window and 128K-token output limit.
  • Support always-on adaptive thinking, medium reasoning effort by default, and summarized thinking display.
  • Apply the model's prompt-cache read pricing.

Change Type

  • LLM plugin

LLM Plugin Checklist

  • Other LLM functionality (adaptive thinking and prompt-cache pricing)
  • New models / model parameter fixes

Version

  • Bumped the top-level manifest.yaml version to 0.3.34.
  • Declared dify_plugin>=0.10.2,<0.11.0 and locked the published 0.10.2 release.
  • Anthropic remains locked to 1.4.0.

Testing

  • Clean Python 3.12.13 environment matching the manifest: uv run --frozen --python 3.12 pytest --ignore=tests/test_llm_live.py -q — 128 passed.
  • Validated 23 model schemas, 16 ordered model IDs, plugin registration, and model discovery.
  • Real Anthropic SDK requests through an HTTP mock verified adaptive thinking, effort, task-budget headers, structured output, and mixed cache usage pricing.
  • uv lock --check and git diff --check passed.
  • Dify CLI 0.6.10 packaged the committed plugin source successfully.
  • Live API requests and a deployed Dify environment were not tested.

Copilot AI balanced review requested due to automatic review settings September 22, 2026 19:49
@WH-2099 WH-2099 self-assigned this Sep 22, 2026
@WH-2099
WH-2099 force-pushed the feat/anthropic-opus-5-5 branch from 498c84d to 5c01e55 Compare September 22, 2026 19:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Empty truncated tool arguments can still be replayed, and opaque replay bypasses configured assistant prompt caching.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Adds Claude Opus 5.5 support and replaces shared thinking state with per-message content replay.

Changes:

  • Registers Opus 5.5 with updated capabilities, pricing, and adaptive-thinking defaults.
  • Preserves ordered Anthropic content blocks across tool rounds.
  • Refreshes dependencies, tests, documentation, and plugin metadata.
File Description
models/​anthropic/​models/​llm/​llm.py Implements model handling and content replay.
models/​anthropic/​models/​llm/​claude-opus-5-5.yaml Defines Opus 5.5 capabilities and pricing.
models/​anthropic/​models/​llm/​_position.yaml Adds the model to display ordering.
models/​anthropic/​tests/​test_thinking_replay.py Tests ordered multi-turn replay and truncation.
models/​anthropic/​tests/​test_opus5_parameters.py Tests Opus 5.5 schema and request parameters.
models/​anthropic/​tests/​test_llm.py Tests classification and cache pricing.
models/​anthropic/​README.md Documents Opus 5.5 behavior.
models/​anthropic/​pyproject.toml Updates direct dependencies.
models/​anthropic/​uv.lock Refreshes resolved dependencies.
models/​anthropic/​manifest.yaml Bumps the plugin version.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread models/anthropic/models/llm/llm.py Resolved
Comment thread models/anthropic/models/llm/llm.py Resolved
Copilot AI review requested due to automatic review settings September 22, 2026 19:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Empty truncated tool inputs can be executed, and opaque replay bypasses configured assistant caching.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)

Copilot AI review requested due to automatic review settings September 22, 2026 20:18
@WH-2099
WH-2099 force-pushed the feat/anthropic-opus-5-5 branch from 5c01e55 to 1c274cb Compare September 22, 2026 20:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Image retention is applied to every vision provider, regressing providers that only support images on the initial tool-loop request.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
Resolved since last review (1)

@WH-2099
WH-2099 force-pushed the feat/anthropic-opus-5-5 branch from 1b6faf7 to 7d6b8bf Compare October 9, 2026 11:38
@WH-2099 WH-2099 changed the title feat(anthropic): add Claude Opus 5.5 and refresh dependencies feat(anthropic): add Claude Opus 5.5 Oct 9, 2026
@WH-2099
WH-2099 marked this pull request as ready for review October 9, 2026 11:40
Copilot AI balanced review requested due to automatic review settings October 9, 2026 11:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The model registration, runtime handling, pricing adjustment, dependency metadata, and regression coverage are consistent and complete.

2 open findings

🧠 Review effort: Balanced

@WH-2099
WH-2099 merged commit ae560fd into main Oct 9, 2026
13 of 16 checks passed
@WH-2099
WH-2099 deleted the feat/anthropic-opus-5-5 branch October 9, 2026 12:51
@41tair
41tair deployed to models/anthropic October 9, 2026 12:51 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
models/anthropic — 7d6b8bf9 Deployed Oct 9, 2026 by 41tair via test (models/anthropic) #2811
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.

feat(anthropic): support Claude Opus 5.5

4 participants