github anthropics/anthropic-sdk-go v1.5.0

latest releases: v1.11.0, v1.10.0, v1.9.1...
2 months ago

1.5.0 (2025-07-03)

Full Changelog: v1.4.0...v1.5.0

Features

  • add RequestID to API errors (884f13b)
  • api: add support for Search Result Content Blocks (1f6ab8a)
  • api: api update (27a18f2)
  • api: manual updates (926b094)
  • client: add debug log helper (e427bb3)
  • client: add escape hatch for null slice & maps (9e3ded0)
  • vertex: support global region endpoint (3c0b86d)

Bug Fixes

  • client: deprecate BetaBase64PDFBlock in favor of BetaRequestDocumentBlock (5d8fd96)
  • don't try to deserialize as json when ResponseBodyInto is []byte (0e7ce7b)
  • pagination: check if page data is empty in GetNextPage (d64dc0a)

Chores

  • api: mark claude-3-opus-20240229 as deprecated (1472af8)
  • ci: enable for pull requests (cdb1340)
  • ci: only run for pushes and fork pull requests (d7d44ff)
  • fix documentation of null map (c79ab28)
  • internal: add breaking change detection (49a1855)

Documentation

  • simplify message creation syntax in README example (#203) (c4aef2e)
  • update models and non-beta (a7bc60e)

Refactors

  • improve Error() method to avoid code duplication (43651c2)

Don't miss a new anthropic-sdk-go release

NewReleases is sending notifications on new releases.