Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
32ee053
fix: allow canceling a request while it is waiting to retry
stainless-app[bot] Feb 19, 2026
9644907
codegen metadata
stainless-app[bot] Feb 20, 2026
185ff17
codegen metadata
stainless-app[bot] Feb 20, 2026
ca5ae6e
feat(api): change array_format to brackets
stainless-app[bot] Feb 20, 2026
64a1a35
codegen metadata
stainless-app[bot] Feb 20, 2026
514282e
feat(api): remove publishing section from cli target
stainless-app[bot] Feb 20, 2026
9a3354e
codegen metadata
stainless-app[bot] Feb 20, 2026
34a997e
codegen metadata
stainless-app[bot] Feb 23, 2026
4392627
chore(internal): move custom custom `json` tags to `api`
stainless-app[bot] Feb 24, 2026
33f6943
docs: streamline README, centralize documentation at docs.anthropic.com
nikblanchet Feb 24, 2026
4d5aca0
codegen metadata
stainless-app[bot] Feb 25, 2026
fe9304a
codegen metadata
stainless-app[bot] Feb 25, 2026
020309d
codegen metadata
stainless-app[bot] Feb 25, 2026
c677bb5
chore(client): reorganize code in Messages files to lead to less conf…
dtmeadows Feb 26, 2026
9246bbb
chore(internal): codegen related update
stainless-app[bot] Feb 27, 2026
cf24ced
feat(tests): update mock server
stainless-app[bot] Mar 3, 2026
1db4ea7
feat(api): chore(config): clean up model enum list (#31)
stainless-app[bot] Mar 4, 2026
b0ca374
chore(tests): unskip tests that are now supported in steady
stainless-app[bot] Mar 4, 2026
2f42e73
fix(client): update model reference from claude-3-7-sonnet-latest to …
dtmeadows Mar 4, 2026
f6035d2
chore(internal): codegen related update
stainless-app[bot] Mar 5, 2026
9678c6c
chore(internal): codegen related update
stainless-app[bot] Mar 7, 2026
ccaf81f
codegen metadata
stainless-app[bot] Mar 9, 2026
5b2b2fa
chore(internal): codegen related update
stainless-app[bot] Mar 10, 2026
4ac31a2
chore(internal): codegen related update
stainless-app[bot] Mar 10, 2026
c978aac
chore(internal): codegen related update
stainless-app[bot] Mar 10, 2026
1924af2
feat(api): GA thinking-display-setting
stainless-app[bot] Mar 16, 2026
39efa74
release: 1.27.0
stainless-app[bot] Mar 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,37 @@ on:
- 'stl-preview-base/**'

jobs:
build:
timeout-minutes: 10
name: build
permissions:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/anthropic-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: |-
github.repository == 'stainless-sdks/anthropic-go' &&
(github.event_name == 'push' || github.event.pull_request.head.repo.fork)
steps:
- uses: actions/checkout@v6

- name: Get GitHub OIDC Token
if: |-
github.repository == 'stainless-sdks/anthropic-go' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: |-
github.repository == 'stainless-sdks/anthropic-go' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh
lint:
timeout-minutes: 10
name: lint
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.26.0"
".": "1.27.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 34
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-29a6b7ba51942cd606e5bf4b533e5aac1bef42f6d4b1f7f45f756304cf676782.yml
openapi_spec_hash: 58021ab18daccd5c45a930ffd7d6ab4d
config_hash: 4e204fead5f0af80eb9effa1d1e34dca
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-7fce94a3c9f72c1d81df2009682a3b554e4b641b32443fd7c1f09f566420f711.yml
openapi_spec_hash: ae7e30bb8d093b5546cdc2b180f7b8e0
config_hash: 32f037e4bc66dfaca12016b0e5110140
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

## 1.27.0 (2026-03-16)

Full Changelog: [v1.26.0...v1.27.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.26.0...v1.27.0)

### Features

* **api:** change array_format to brackets ([ca5ae6e](https://github.com/anthropics/anthropic-sdk-go/commit/ca5ae6eaf8243aece877d33eb88653db2e439a36))
* **api:** chore(config): clean up model enum list ([#31](https://github.com/anthropics/anthropic-sdk-go/issues/31)) ([1db4ea7](https://github.com/anthropics/anthropic-sdk-go/commit/1db4ea7956259bb217bc2523a5244b6029c4bd15))
* **api:** GA thinking-display-setting ([1924af2](https://github.com/anthropics/anthropic-sdk-go/commit/1924af22e00fad68ccf31a3809c8cab8d442c048))
* **api:** remove publishing section from cli target ([514282e](https://github.com/anthropics/anthropic-sdk-go/commit/514282e1728881f7ef4c6782f3000ca0ec632d53))
* **tests:** update mock server ([cf24ced](https://github.com/anthropics/anthropic-sdk-go/commit/cf24ced2844da5d0f645e7a2afbabb936c891892))


### Bug Fixes

* allow canceling a request while it is waiting to retry ([32ee053](https://github.com/anthropics/anthropic-sdk-go/commit/32ee05317970d99df3147c65c2055efabe354472))
* **client:** update model reference from claude-3-7-sonnet-latest to claude-sonnet-4-5 ([2f42e73](https://github.com/anthropics/anthropic-sdk-go/commit/2f42e7336295d898d18c66ddd6f9f70bab108cc6))


### Chores

* **client:** reorganize code in Messages files to lead to less conflicts ([c677bb5](https://github.com/anthropics/anthropic-sdk-go/commit/c677bb58a3da8f17f0dbc630b5b28faed995aa6b))
* **internal:** codegen related update ([c978aac](https://github.com/anthropics/anthropic-sdk-go/commit/c978aacf53bbcf6555ba97bdc6bdfc9be9d8f98d))
* **internal:** codegen related update ([4ac31a2](https://github.com/anthropics/anthropic-sdk-go/commit/4ac31a2fb9dc45a41bcbaa25dfbf8848119768ec))
* **internal:** codegen related update ([5b2b2fa](https://github.com/anthropics/anthropic-sdk-go/commit/5b2b2fa276ad9365ddcb53270f307db05e5b6363))
* **internal:** codegen related update ([9678c6c](https://github.com/anthropics/anthropic-sdk-go/commit/9678c6c5d375f66cb569a537a0766a5ed4d8f7f0))
* **internal:** codegen related update ([f6035d2](https://github.com/anthropics/anthropic-sdk-go/commit/f6035d2bb0c50cf97cea78fb3fe854289b11a34c))
* **internal:** codegen related update ([9246bbb](https://github.com/anthropics/anthropic-sdk-go/commit/9246bbb15553cee531b5caef2c7876e84a8fe8f2))
* **internal:** move custom custom `json` tags to `api` ([4392627](https://github.com/anthropics/anthropic-sdk-go/commit/4392627107c43726c242923c16b0f5ac2b432082))
* **tests:** unskip tests that are now supported in steady ([b0ca374](https://github.com/anthropics/anthropic-sdk-go/commit/b0ca37403486c65ae171d2b330ff82c938fe9b58))


### Documentation

* streamline README, centralize documentation at docs.anthropic.com ([33f6943](https://github.com/anthropics/anthropic-sdk-go/commit/33f69431abd96025134d8967c20a1f313af3382d)), closes [#587](https://github.com/anthropics/anthropic-sdk-go/issues/587)

## 1.26.0 (2026-02-19)

Full Changelog: [v1.25.1...v1.26.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.25.1...v1.26.0)
Expand Down
6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Contributing to documentation

The documentation for this SDK lives at [platform.claude.com/docs/en/api/sdks/go](https://platform.claude.com/docs/en/api/sdks/go). To suggest changes, open an issue.

## Setting up the environment

To set up the repository, run:
Expand Down Expand Up @@ -46,7 +50,7 @@ $ go mod edit -replace github.com/anthropics/anthropic-sdk-go=/path/to/anthropic

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
Most tests require you to [set up a mock server](https://github.com/dgellow/steady) against the OpenAPI spec to run the tests.

```sh
$ ./scripts/mock
Expand Down
Loading
Loading