One change
go
cli-sdks-libraries/sdks/go
Nearest release: v2.1.238, published under an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
cli-sdks-libraries/sdks/go Changed · +3 / -3 lines
from line 26
## Requirements -This library requires Go 1.23+. +This library requires Go 1.24+. ## Usage
from line 560
```go // A file from the file system file, err := os.Open("/path/to/file.json") -anthropic.BetaFileUploadParams{ +anthropic.FileUploadParams{ File: anthropic.File(file, "custom-name.json", "application/json"), } // A file from a string -anthropic.BetaFileUploadParams{ +anthropic.FileUploadParams{ File: anthropic.File(strings.NewReader("my file contents"), "custom-name.json", "application/json"), } ```