Skip to content

Commit

Permalink
fix: send correct Accept header for certain endpoints (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Jan 10, 2025
1 parent 05e514e commit a0d9ece
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/resources/beta/messages/batches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export class Batches extends APIResource {
...options,
headers: {
'anthropic-beta': [...(betas ?? []), 'message-batches-2024-09-24'].toString(),
Accept: 'application/binary',
...options?.headers,
},
__binaryResponse: true,
Expand Down
1 change: 1 addition & 0 deletions src/resources/messages/batches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class Batches extends APIResource {
results(messageBatchId: string, options?: Core.RequestOptions): Core.APIPromise<Response> {
return this._client.get(`/v1/messages/batches/${messageBatchId}/results`, {
...options,
headers: { Accept: 'application/binary', ...options?.headers },
__binaryResponse: true,
});
}
Expand Down

0 comments on commit a0d9ece

Please sign in to comment.