fix(deps): update module github.com/anthropics/anthropic-sdk-go/v2 to v2.14.0 #78

Open
james wants to merge 1 commit from renovate/github.com-anthropics-anthropic-sdk-go-v2-2.x into main
Owner

This PR contains the following updates:

Package Change Age Confidence
github.com/anthropics/anthropic-sdk-go/v2 v2.12.0 → v2.14.0 age confidence

Release Notes

anthropics/anthropic-sdk-go (github.com/anthropics/anthropic-sdk-go/v2)

v2.14.0

Compare Source

Features
  • api: add an error code to Message Batches creation
  • api: add External Storage to the Admin API beta
  • api: add webhook events for external storage failure and recovery
Bug Fixes
  • api: change the type of ErrorDetailsUnion.Field to string

    To compare it with a WorkspacePolicyField value, use AsWorkspacePolicyViolation().Field. The beta methods Workspaces.Get, Workspaces.Archive and ComplianceSettings.Get now take a params argument.

  • client: don't retry a message batch create that may have succeeded

    Creating a message batch is now retried only after a 429 or when no connection could be made. After a timeout, a dropped connection or a 5xx error such as 529, the call returns the error. List your batches before you send it again.

Chores
  • api: mark Claude Opus 4.5 as deprecated (end-of-life January 22, 2027)
  • docs: clarify when plugin archive downloads are recorded and who gave a share
  • docs: correct organization-type notes in usage and cost reports
  • docs: describe the user profile endpoints and link to the guide
  • docs: use realistic example values in more request bodies
Documentation
  • api: shorten the human_review description

v2.13.0

Compare Source

Features
  • api: add the image_dimensions_too_large error code
Bug Fixes
  • bedrock: send the user profile ID in the request body

    Amazon Bedrock reads user_profile_id from the request body and ignores the anthropic-user-profile-id header, so a profile ID given to a client made with bedrock.WithConfig or bedrock.WithLoadDefaultConfig was not applied. The client now moves it into the body of Messages requests and no longer sends the header. A user_profile_id already in the body takes priority over the header.

    Some models on Bedrock do not support user profiles. A request to one of them with a profile ID now fails with a 400 error; before, the ID was ignored. Leave the ID off requests to those models.

Chores
  • docs: clarify billing_policy in batches and two billing errors

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/anthropics/anthropic-sdk-go/v2](https://github.com/anthropics/anthropic-sdk-go) | `v2.12.0` → `v2.14.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fanthropics%2fanthropic-sdk-go%2fv2/v2.14.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fanthropics%2fanthropic-sdk-go%2fv2/v2.12.0/v2.14.0?slim=true) | --- ### Release Notes <details> <summary>anthropics/anthropic-sdk-go (github.com/anthropics/anthropic-sdk-go/v2)</summary> ### [`v2.14.0`](https://github.com/anthropics/anthropic-sdk-go/releases/tag/v2.14.0) [Compare Source](https://github.com/anthropics/anthropic-sdk-go/compare/v2.13.0...v2.14.0) ##### Features - **api:** add an error code to Message Batches creation - **api:** add External Storage to the Admin API beta - **api:** add webhook events for external storage failure and recovery ##### Bug Fixes - **api:** change the type of ErrorDetailsUnion.Field to string To compare it with a `WorkspacePolicyField` value, use `AsWorkspacePolicyViolation().Field`. The beta methods `Workspaces.Get`, `Workspaces.Archive` and `ComplianceSettings.Get` now take a params argument. - **client:** don't retry a message batch create that may have succeeded Creating a message batch is now retried only after a 429 or when no connection could be made. After a timeout, a dropped connection or a 5xx error such as 529, the call returns the error. List your batches before you send it again. ##### Chores - **api:** mark Claude Opus 4.5 as deprecated (end-of-life January 22, 2027) - **docs:** clarify when plugin archive downloads are recorded and who gave a share - **docs:** correct organization-type notes in usage and cost reports - **docs:** describe the user profile endpoints and link to the guide - **docs:** use realistic example values in more request bodies ##### Documentation - **api:** shorten the human_review description ### [`v2.13.0`](https://github.com/anthropics/anthropic-sdk-go/releases/tag/v2.13.0) [Compare Source](https://github.com/anthropics/anthropic-sdk-go/compare/v2.12.0...v2.13.0) ##### Features - **api:** add the image_dimensions_too_large error code ##### Bug Fixes - **bedrock:** send the user profile ID in the request body Amazon Bedrock reads `user_profile_id` from the request body and ignores the `anthropic-user-profile-id` header, so a profile ID given to a client made with `bedrock.WithConfig` or `bedrock.WithLoadDefaultConfig` was not applied. The client now moves it into the body of Messages requests and no longer sends the header. A `user_profile_id` already in the body takes priority over the header. Some models on Bedrock do not support user profiles. A request to one of them with a profile ID now fails with a 400 error; before, the ID was ignored. Leave the ID off requests to those models. ##### Chores - **docs:** clarify billing_policy in batches and two billing errors </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC42NS41IiwidXBkYXRlZEluVmVyIjoiNDQuNjUuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
fix(deps): update module github.com/anthropics/anthropic-sdk-go/v2 to v2.13.0
All checks were successful
security-scan / security-scan (pull_request) Successful in 46s
test / web (pull_request) Successful in 1m56s
test / coverage-badge (pull_request) Has been skipped
codecov/project 54.97% (No base report)
codecov/patch 100.00% >= target 80%
test / go (pull_request) Successful in 4m8s
claude-review / review (pull_request) Successful in 4m58s
5570007088

🔎 ojo scan results

No findings.

<!-- ojo-scan-summary --> ### 🔎 ojo scan results No findings.

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 5549 uncovered lines.


Generated by Codecov Action

<!-- codecov-action-results --> ## Codecov Results 📊 :white_check_mark: Patch coverage is **100.00%**. Project has **5549** uncovered lines. --- *Generated by [Codecov Action](https://github.com/getsentry/codecov-action)*

Updates

Name Ecosystem Old → New Direct / transitive Bump
github.com/anthropics/anthropic-sdk-go/v2 Go module v2.12.0 → v2.14.0 Direct minor

Only this module changes: one line in go.mod and two lines in go.sum. Its /go.mod hash is the same in both versions, so the SDK's own requirements did not change. No transitive modules, npm packages, Docker images or workflow actions are touched.

Changelog

anthropic-sdk-go v2.12.0 → v2.14.0. Sources: the release notes in the PR description. I checked the v2.14.0 notes against the upstream v2.14.0 release and they match. The v2.13.0 notes come from the PR description only (upstream v2.13.0 release); I did not check them separately.

Breaking and behaviour changes first:

  • v2.14.0, breaking API change: ErrorDetailsUnion.Field is now a string. The beta methods Workspaces.Get, Workspaces.Archive and ComplianceSettings.Get now take a params argument.
  • v2.14.0, behaviour change in the client: a message batch create is now retried only after a 429 or when no connection could be made. After a timeout, a dropped connection or a 5xx error (including 529), the call returns the error straight away. Upstream advises listing your batches before sending again.
  • v2.14.0, deprecation: Claude Opus 4.5 is marked deprecated (end of life 2027-01-22).
  • v2.13.0, behaviour change on Bedrock: the user profile ID is now sent in the request body instead of the anthropic-user-profile-id header. On Bedrock models that don't support user profiles, a request with a profile ID now fails with a 400; before, the ID was ignored.
  • No security fixes or CVE/GHSA ids are listed for either release.

Features and fixes:

  • v2.14.0: a new error code for Message Batches creation; External Storage added to the Admin API beta; webhook events for external storage failure and recovery; documentation fixes.
  • v2.13.0: a new image_dimensions_too_large error code; clearer docs on billing_policy.

Transitive updates: none.

Concerns

  • ErrorDetailsUnion.Field, Workspaces and ComplianceSettings signatures: we are not affected. None of these are used anywhere in the repo. Our SDK use is all in internal/ai/anthropic.go: Messages streaming at :127 and Message Batches New, Get, ResultsStreaming and Cancel at :158, :167, :178 and :201. The test / go check also passes, so the code compiles.
  • Bedrock user profile change: we are not affected. Balam builds the client with only option.WithAPIKey, option.WithHTTPClient and an optional option.WithBaseURL (internal/ai/anthropic.go:25-28). It never uses bedrock.WithConfig, and the repo never sets user_profile_id.
  • Batch create no longer retried on timeout or 5xx: this affects us, and on balance it helps. SubmitBatch calls Beta.Messages.Batches.New at internal/ai/anthropic.go:158.
    • With this release, a transient 529 or 5xx while submitting now fails right away instead of being retried.
    • If the first chunk fails, the job finishes as error and its queued items are released (internal/ai/job.go:493-495, :273).
    • If a later chunk fails, the batches already submitted are still collected and the job then finishes as error (internal/ai/job.go:484-487, :551-552).
    • So admins may see more failed bulk jobs during API overload, and will need to rerun them.
    • The upside is that the old automatic retries could create a duplicate, billed batch after a create that timed out but had actually succeeded. That no longer happens.
    • One gap remains, and this change did not create it. When a create times out after the server accepted it, Balam never learns the batch ID, so that batch is billed but its results are never read. The comment at internal/ai/job.go:479-482 says the only orphan window is "one database write", which was already too narrow and is still wrong. Balam has no batch-listing step to recover such batches.
    • Possible follow-up, not needed for this PR: update that comment and/or STATUS.md, or look up batches by their item custom_ids after a submit error.
    • Upload timeouts are unlikely. The outbound client allows 10 minutes (cmd/server/main.go:98), and chunks are capped at 100 MB (internal/ai/job.go:458-459).
  • Opus 4.5 deprecation: not referenced in Balam's default models (internal/ai/ai.go:62). Admins can set any model name for an organization. Any organization that chose claude-opus-4-5 will need to switch before 2027-01-22.
  • Go version, licence, new dependencies, lockfile churn: none. go 1.26.3 is unchanged and no new modules are added.
  • Untrusted content: the PR description and comments contain no instructions aimed at the reviewer.
  • Checks (checks.json):
    • Passed: test / go, test / web, security-scan, codecov/patch (100.00%) and codecov/project (54.97%, no base report).
    • Skipped: test / coverage-badge.
  • Comments: the ojo security scan reports "No findings". The Codecov comment reports 100% patch coverage.

Summary

This is a minor SDK bump. It brings new API error codes, Admin API additions, a Bedrock user-profile fix we don't use, and an upstream change that stops retrying Message Batch creates after errors where the batch may already exist. None of the breaking type or signature changes touch Balam's code, and all checks that ran passed. The only effect we'll see is that bulk AI jobs fail on a transient 5xx or 529 instead of retrying, which avoids duplicate billed batches.

Safe to merge


Claude dependency-update review of 306348dd4a · claude-opus-5-5

<!-- claude-pr-review --> ### Updates | Name | Ecosystem | Old → New | Direct / transitive | Bump | |---|---|---|---|---| | `github.com/anthropics/anthropic-sdk-go/v2` | Go module | `v2.12.0` → `v2.14.0` | Direct | minor | Only this module changes: one line in `go.mod` and two lines in `go.sum`. Its `/go.mod` hash is the same in both versions, so the SDK's own requirements did not change. No transitive modules, npm packages, Docker images or workflow actions are touched. ### Changelog **anthropic-sdk-go v2.12.0 → v2.14.0.** Sources: the release notes in the PR description. I checked the v2.14.0 notes against the [upstream v2.14.0 release](https://github.com/anthropics/anthropic-sdk-go/releases/tag/v2.14.0) and they match. The v2.13.0 notes come from the PR description only ([upstream v2.13.0 release](https://github.com/anthropics/anthropic-sdk-go/releases/tag/v2.13.0)); I did not check them separately. Breaking and behaviour changes first: - **v2.14.0, breaking API change:** `ErrorDetailsUnion.Field` is now a `string`. The beta methods `Workspaces.Get`, `Workspaces.Archive` and `ComplianceSettings.Get` now take a params argument. - **v2.14.0, behaviour change in the client:** a message batch create is now retried only after a 429 or when no connection could be made. After a timeout, a dropped connection or a 5xx error (including 529), the call returns the error straight away. Upstream advises listing your batches before sending again. - **v2.14.0, deprecation:** Claude Opus 4.5 is marked deprecated (end of life 2027-01-22). - **v2.13.0, behaviour change on Bedrock:** the user profile ID is now sent in the request body instead of the `anthropic-user-profile-id` header. On Bedrock models that don't support user profiles, a request with a profile ID now fails with a 400; before, the ID was ignored. - No security fixes or CVE/GHSA ids are listed for either release. Features and fixes: - v2.14.0: a new error code for Message Batches creation; External Storage added to the Admin API beta; webhook events for external storage failure and recovery; documentation fixes. - v2.13.0: a new `image_dimensions_too_large` error code; clearer docs on `billing_policy`. Transitive updates: none. ### Concerns - **`ErrorDetailsUnion.Field`, Workspaces and ComplianceSettings signatures:** we are not affected. None of these are used anywhere in the repo. Our SDK use is all in `internal/ai/anthropic.go`: Messages streaming at `:127` and Message Batches `New`, `Get`, `ResultsStreaming` and `Cancel` at `:158`, `:167`, `:178` and `:201`. The `test / go` check also passes, so the code compiles. - **Bedrock user profile change:** we are not affected. Balam builds the client with only `option.WithAPIKey`, `option.WithHTTPClient` and an optional `option.WithBaseURL` (`internal/ai/anthropic.go:25-28`). It never uses `bedrock.WithConfig`, and the repo never sets `user_profile_id`. - **Batch create no longer retried on timeout or 5xx: this affects us, and on balance it helps.** `SubmitBatch` calls `Beta.Messages.Batches.New` at `internal/ai/anthropic.go:158`. - With this release, a transient 529 or 5xx while submitting now fails right away instead of being retried. - If the first chunk fails, the job finishes as `error` and its queued items are released (`internal/ai/job.go:493-495`, `:273`). - If a later chunk fails, the batches already submitted are still collected and the job then finishes as `error` (`internal/ai/job.go:484-487`, `:551-552`). - So admins may see more failed bulk jobs during API overload, and will need to rerun them. - The upside is that the old automatic retries could create a duplicate, billed batch after a create that timed out but had actually succeeded. That no longer happens. - One gap remains, and this change did not create it. When a create times out after the server accepted it, Balam never learns the batch ID, so that batch is billed but its results are never read. The comment at `internal/ai/job.go:479-482` says the only orphan window is "one database write", which was already too narrow and is still wrong. Balam has no batch-listing step to recover such batches. - Possible follow-up, not needed for this PR: update that comment and/or `STATUS.md`, or look up batches by their item `custom_id`s after a submit error. - Upload timeouts are unlikely. The outbound client allows 10 minutes (`cmd/server/main.go:98`), and chunks are capped at 100 MB (`internal/ai/job.go:458-459`). - **Opus 4.5 deprecation:** not referenced in Balam's default models (`internal/ai/ai.go:62`). Admins can set any model name for an organization. Any organization that chose `claude-opus-4-5` will need to switch before 2027-01-22. - **Go version, licence, new dependencies, lockfile churn:** none. `go 1.26.3` is unchanged and no new modules are added. - **Untrusted content:** the PR description and comments contain no instructions aimed at the reviewer. - **Checks (`checks.json`):** - Passed: `test / go`, `test / web`, `security-scan`, `codecov/patch` (100.00%) and `codecov/project` (54.97%, no base report). - Skipped: `test / coverage-badge`. - **Comments:** the ojo security scan reports "No findings". The Codecov comment reports 100% patch coverage. ### Summary This is a minor SDK bump. It brings new API error codes, Admin API additions, a Bedrock user-profile fix we don't use, and an upstream change that stops retrying Message Batch creates after errors where the batch may already exist. None of the breaking type or signature changes touch Balam's code, and all checks that ran passed. The only effect we'll see is that bulk AI jobs fail on a transient 5xx or 529 instead of retrying, which avoids duplicate billed batches. **Safe to merge** --- _Claude dependency-update review of 306348dd4a · claude-opus-5-5_
james force-pushed renovate/github.com-anthropics-anthropic-sdk-go-v2-2.x from 5570007088
All checks were successful
security-scan / security-scan (pull_request) Successful in 46s
test / web (pull_request) Successful in 1m56s
test / coverage-badge (pull_request) Has been skipped
codecov/project 54.97% (No base report)
codecov/patch 100.00% >= target 80%
test / go (pull_request) Successful in 4m8s
claude-review / review (pull_request) Successful in 4m58s
to 306348dd4a
All checks were successful
security-scan / security-scan (pull_request) Successful in 33s
test / web (pull_request) Successful in 1m45s
test / coverage-badge (pull_request) Has been skipped
codecov/project 54.97% (No base report)
codecov/patch 100.00% >= target 80%
test / go (pull_request) Successful in 3m37s
claude-review / review (pull_request) Successful in 5m7s
2026-11-24 04:07:55 +00:00
Compare
james changed title from fix(deps): update module github.com/anthropics/anthropic-sdk-go/v2 to v2.13.0 to fix(deps): update module github.com/anthropics/anthropic-sdk-go/v2 to v2.14.0 2026-11-24 04:07:58 +00:00
All checks were successful
security-scan / security-scan (pull_request) Successful in 33s
test / web (pull_request) Successful in 1m45s
test / coverage-badge (pull_request) Has been skipped
codecov/project 54.97% (No base report)
codecov/patch 100.00% >= target 80%
test / go (pull_request) Successful in 3m37s
claude-review / review (pull_request) Successful in 5m7s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/github.com-anthropics-anthropic-sdk-go-v2-2.x:renovate/github.com-anthropics-anthropic-sdk-go-v2-2.x
git switch renovate/github.com-anthropics-anthropic-sdk-go-v2-2.x
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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
ColibriSec/balam!78
No description provided.