fix(deps): update module github.com/anthropics/anthropic-sdk-go/v2 to v2.14.0 #78
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/github.com-anthropics-anthropic-sdk-go-v2-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v2.12.0→v2.14.0Release Notes
anthropics/anthropic-sdk-go (github.com/anthropics/anthropic-sdk-go/v2)
v2.14.0Compare Source
Features
Bug Fixes
api: change the type of ErrorDetailsUnion.Field to string
To compare it with a
WorkspacePolicyFieldvalue, useAsWorkspacePolicyViolation().Field. The beta methodsWorkspaces.Get,Workspaces.ArchiveandComplianceSettings.Getnow 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
Documentation
v2.13.0Compare Source
Features
Bug Fixes
bedrock: send the user profile ID in the request body
Amazon Bedrock reads
user_profile_idfrom the request body and ignores theanthropic-user-profile-idheader, so a profile ID given to a client made withbedrock.WithConfigorbedrock.WithLoadDefaultConfigwas not applied. The client now moves it into the body of Messages requests and no longer sends the header. Auser_profile_idalready 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
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR has been generated by Mend Renovate CLI.
🔎 ojo scan results
No findings.
Codecov Results 📊
✅ Patch coverage is 100.00%. Project has 5549 uncovered lines.
Generated by Codecov Action
Updates
github.com/anthropics/anthropic-sdk-go/v2v2.12.0→v2.14.0Only this module changes: one line in
go.modand two lines ingo.sum. Its/go.modhash 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:
ErrorDetailsUnion.Fieldis now astring. The beta methodsWorkspaces.Get,Workspaces.ArchiveandComplianceSettings.Getnow take a params argument.anthropic-user-profile-idheader. 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.Features and fixes:
image_dimensions_too_largeerror code; clearer docs onbilling_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 ininternal/ai/anthropic.go: Messages streaming at:127and Message BatchesNew,Get,ResultsStreamingandCancelat:158,:167,:178and:201. Thetest / gocheck also passes, so the code compiles.option.WithAPIKey,option.WithHTTPClientand an optionaloption.WithBaseURL(internal/ai/anthropic.go:25-28). It never usesbedrock.WithConfig, and the repo never setsuser_profile_id.SubmitBatchcallsBeta.Messages.Batches.Newatinternal/ai/anthropic.go:158.errorand its queued items are released (internal/ai/job.go:493-495,:273).error(internal/ai/job.go:484-487,:551-552).internal/ai/job.go:479-482says 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.STATUS.md, or look up batches by their itemcustom_ids after a submit error.cmd/server/main.go:98), and chunks are capped at 100 MB (internal/ai/job.go:458-459).internal/ai/ai.go:62). Admins can set any model name for an organization. Any organization that choseclaude-opus-4-5will need to switch before 2027-01-22.go 1.26.3is unchanged and no new modules are added.checks.json):test / go,test / web,security-scan,codecov/patch(100.00%) andcodecov/project(54.97%, no base report).test / coverage-badge.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-55570007088306348dd4afix(deps): update module github.com/anthropics/anthropic-sdk-go/v2 to v2.13.0to fix(deps): update module github.com/anthropics/anthropic-sdk-go/v2 to v2.14.0View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.