Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
refactor: Content filter helper function #441
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
refactor: Content filter helper function #441
Changes from 5 commits
e21ec35
6f31078
1b19566
6d3b410
c9008cf
1397cc1
80fbf99
b17f12b
4ee2f12
42bd8b5
23cd5aa
6e20a48
a5fee4b
07ae577
b81fd07
4dca1b9
eee41e0
d58970e
77af75e
220f395
37dc504
8a4abb3
58e4a2d
e86fb1f
ce1ac5a
8190455
cda132b
5960570
2908711
a596608
e26ced8
fc6ee9b
4e394db
32c2526
eaac8d3
ab358c2
3a4abcf
67b876e
3b842cc
29ff38b
215f754
bb3b537
00970f9
8a51d06
7caeeb4
202dddd
ac6b143
6d46b4c
3ee5f95
6d5d65f
4a0792e
5d439e8
0dfe5ff
56e49e8
1b11568
8b0913c
fabb56d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
[q] Is this line even needed? I feel like we're way to verbose sometimes when things are self-explanatory. We can just say (in the line above):
Use
buildAzureContentSafetyFilter()
function to build an Azure content filter for both input and output.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.
Shortened the description, but I feel it would be nice to still leave the mapping table in there as previously we had a function which used numbers instead.
Check warning on line 293 in packages/orchestration/README.md