Skip to content
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

Automatically Base64 encode inputs #198

Merged
merged 1 commit into from
Feb 17, 2024
Merged

Automatically Base64 encode inputs #198

merged 1 commit into from
Feb 17, 2024

Conversation

aron
Copy link
Contributor

@aron aron commented Jan 26, 2024

Putting this here as it's been sitting on my hard-drive for over a week.

@mattt I think it's probably worth supporting auto-upload to the files endpoint too before we ship this, but curious as to your thoughts.

@mattt mattt marked this pull request as ready for review February 17, 2024 13:18
Co-authored-by: Aron Carroll <aron@replicate.com>
@mattt
Copy link
Member

mattt commented Feb 17, 2024

@aron That's a great idea. Thanks for putting this together!

Even when we do have a files API, it would be nice to configure a client to still pass data URIs. For example, when setting a custom base URL or automatically falling back if the files API isn't available.

@mattt mattt merged commit 839e476 into main Feb 17, 2024
10 checks passed
@mattt mattt deleted the base64-encode-inputs branch February 17, 2024 13:33
@mattt mattt changed the title WIP: Base64 encode inputs Automatically Base64 encode inputs Feb 21, 2024
@zeke
Copy link
Member

zeke commented Feb 21, 2024

Hot damn. That's a nice quality of life improvement.

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.

None yet

3 participants