Chainlit / literalai-python

https://docs.getliteral.ai/
Apache License 2.0
12 stars 0 forks source link

Support Azure Blob Storage #10

Closed clementsirieix closed 11 months ago

clementsirieix commented 11 months ago

Changes

Following Azure storage support, we need to update the file upload method. Azure require a PUT request, so I'm returning a method field. Similarly a specific header need to be passed so I'm providing custom headers, in a headers field.

How to test?

linear[bot] commented 11 months ago
CHA-612 Attachments should be signed

## Description When fetching an `Attachment` I should override the `url` with a signed url based on `objectKey`. Let's cache the read `signedUrl` to make sure to not duplicate stuff. ## Definition of Done * Fetching an `Attachment` I should override the `url` property if the `objectKey` property exist * Ensure that it works when fetching from other relations (e.g. `Step`)