Skip to content

Conversation

@Klaijan
Copy link
Contributor

@Klaijan Klaijan commented Oct 15, 2024

This PR fixes the error when text/csv is passed to the param as below by adding the handling for text/csv

req = operations.PartitionRequest(
    partition_parameters=shared.PartitionParameters(
        files=files,
        strategy="fast",
        output_format="text/csv",
    )
)

To test:
Pull this branch and test on the local version of python client. Follow the guide here.
Or you could also install the client locally by pip install -v -e . to refer to the local version of the client.

JIRA Ticket

@Coniferish
Copy link
Contributor

Coniferish commented Oct 16, 2024

Hey @Klaijan! Can you add this bug fix to the changelog? Austin created one just before leaving for us to track changes manually. We don't have any checks in CI for changes, so we'll just have to remember to do so for now.

@Klaijan Klaijan changed the title feat: add text/csv handling to the python sdk [RUDOLPH-90] fix: add text/csv handling to the python sdk [RUDOLPH-90] Oct 17, 2024
@Klaijan Klaijan marked this pull request as draft October 17, 2024 17:50
@Klaijan
Copy link
Contributor Author

Klaijan commented Oct 17, 2024

Error occur when try with 1-page pdf.
For extra context, the result is returned. But error was also raised.
1.pdf

unstructured_client.models.errors.sdkerror.SDKError: Unexpected response received (code: 200, type: text/plain; charset=utf-8): Status 200```

@Coniferish Coniferish force-pushed the klaijan/text-csv-response-type branch from 68e3955 to f81239d Compare October 23, 2024 21:48
@Klaijan Klaijan closed this Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants