The whole hunk
from line 529, old and new numbered
/
lines
from line 529
529529 var messageBatch *anthropic.MessageBatch
530530 for {
531531 var err error
532 messageBatch, err = client.Messages.Batches.Get(context.TODO(), messageBatchID)
532 messageBatch, err = client.Messages.Batches.Get(context.TODO(), messageBatchID, anthropic.MessageBatchGetParams{})
533533 if err != nil {
534534 log.Fatal(err)
535535 }
from line 822
822822 ```go Go
823823 client := anthropic.NewClient()
824824
825 stream := client.Messages.Batches.ResultsStreaming(context.TODO(), "msgbatch_01HkcTjaV5uDC8jWR4ZsDV8d")
825 stream := client.Messages.Batches.ResultsStreaming(context.TODO(), "msgbatch_01HkcTjaV5uDC8jWR4ZsDV8d", anthropic.MessageBatchResultsParams{})
826826
827827 for stream.Next() {
828828 result := stream.Current()
from line 986
986986 client := anthropic.NewClient()
987987 messageBatchID := os.Getenv("MESSAGE_BATCH_ID")
988988
989 messageBatch, err := client.Messages.Batches.Cancel(context.TODO(), messageBatchID)
989 messageBatch, err := client.Messages.Batches.Cancel(context.TODO(), messageBatchID, anthropic.MessageBatchCancelParams{})
990990 if err != nil {
991991 log.Fatal(err)
992992 }