Skip to content

Release v2.9.1

Choose a tag to compare

@github-actions github-actions released this 22 Apr 14:57
77c7769
feat: Adding webp to image assets for downloading (#201)

<!-- begin-generated-description -->

This PR updates the `_send_http_request` function in the
`cohere_compass/clients/compass.py` and
`cohere_compass/clients/compass_async.py` files.

- The function now checks for the `image/webp` content type in addition
to `image/jpeg` and `image/png`.
- This change ensures that the function can handle responses from
`get_document_asset()` when the asset is an image in WebP format.

<!-- end-generated-description -->