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

AWS S3 Image and Document uploads #52

Merged
merged 26 commits into from
Jul 5, 2024
Merged

AWS S3 Image and Document uploads #52

merged 26 commits into from
Jul 5, 2024

Conversation

sachinkarve
Copy link
Contributor

Capability to upload Image and Documents sent from WA client to AWS S3.

ConfigFile should look something like

[[pre_processors]]
type = "aws_s3"
name = "aws_s3"
aws_access_key_id="access-key-that-is-on-your-aws-console"
aws_secret_access_key="secret-key-that-is-on-your-aws-console"
region = "us-east-2"
bucket = "bucket-name-that-your-create-on-aws-console"

[[services]]
webhook_path = "/whatsapp"
plugin = "openai_test"
store = "memory_test"
handler = "whatsapp_test"
pre_processors = ["aws_s3"] 

@sachinkarve sachinkarve changed the title Sach/feat s3 new AWS S3 Image and Document uploads Jul 1, 2024

import static org.junit.jupiter.api.Assertions.*;

class S3PreProcessorTest {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get that this will be a hard test to write for s3, for the sake of this detail in the description for this PR how you manually tested this and then in a later PR we also need a test for preprocessors in general

@sachinkarve sachinkarve merged commit 7251071 into main Jul 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants