-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Azure Blob Storage #10
Support Azure Blob Storage #10
Conversation
CHA-612 Attachments should be signed
DescriptionWhen fetching an Let's cache the read Definition of Done
|
b629863
to
522647d
Compare
python-client/chainlit_client/api.py
Outdated
upload_response = await client.post( | ||
upload_details["url"], | ||
files=form_data, | ||
client_request = client.put if method == "PUT" else client.post |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use client.request
(https://www.python-httpx.org/api/#asyncclient) to avoid storing the function into a variable. Something like client.request(method, url...)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
be8c9b7
to
b7fac11
Compare
b7fac11
to
dc0d62e
Compare
Changes
Following Azure storage support, we need to update the file upload method.
Azure require a
PUT
request, so I'm returning amethod
field.Similarly a specific header need to be passed so I'm providing custom headers, in a
headers
field.How to test?
python examples/file-upload.py