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

feat: support DetectToxicContent #7

Merged
merged 2 commits into from
Aug 30, 2024
Merged

Conversation

shreemaan-abhishek
Copy link
Member

No description provided.

Copy link

github-actions bot commented Aug 29, 2024

Luacheck Report

2 tests   2 ✅  0s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 4eeed8c.

♻️ This comment has been updated with latest results.

@@ -78,6 +78,66 @@ local aws_config = {
api = {},
}

local detect_toxic_content_spec = {
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -106,7 +106,7 @@ local function build_request(operation, config, params)
local body_tbl = {}

if config.signingName or config.targetPrefix then
request.headers["X-Amz-Target"] = (config.signingName or config.targetPrefix) .. "." .. operation.name
request.headers["X-Amz-Target"] = (config.targetPrefix or config.signingName) .. "." .. operation.name
Copy link
Member Author

Choose a reason for hiding this comment

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

the x-amz-target should have the Comprehend_20171127 prefix. In this case targetPrefix has the Comprehend_20171127 value.

Choose a reason for hiding this comment

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

Will this affect other APIs?

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm, I cannot confirm this. I should change the order only for DetectToxicity then.

@shreemaan-abhishek shreemaan-abhishek merged commit 6522b67 into main Aug 30, 2024
9 checks passed
@shreemaan-abhishek shreemaan-abhishek deleted the fix-comprehend branch August 30, 2024 06:30
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.

2 participants