Skip to content

Commit 59807d5

Browse files
committed
change accept header
1 parent 5886926 commit 59807d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "unstructured-client",
33
"version": "0.18.1",
44
"author": "Unstructured",
5-
"main": "./index.js",
5+
"main": "src/index.js",
66
"sideEffects": false,
77
"repository": {
88
"type": "git",

src/funcs/generalPartition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export async function generalPartition(
246246
const path = pathToFunc("/general/v0/general")();
247247

248248
const headers = new Headers({
249-
Accept: "application/json",
249+
Accept: payload.partition_parameters.output_format,
250250
"unstructured-api-key": encodeSimple(
251251
"unstructured-api-key",
252252
payload["unstructured-api-key"],

0 commit comments

Comments
 (0)