generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Merged
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
e21ec35
refactor: implemement ContentFilters.azure() and deprecate buildAzure…
ZhongpinWang 6f31078
fix: Changes from lint
1b19566
chore: changeset
ZhongpinWang 6d3b410
fix: vale
ZhongpinWang c9008cf
chore: update README
ZhongpinWang 1397cc1
Merge branch 'main' into refactor-content-filters
ZhongpinWang 80fbf99
review
ZhongpinWang b17f12b
fix: Changes from lint
4ee2f12
Merge branch 'main' into refactor-content-filters
ZhongpinWang 42bd8b5
refactor: rename azure into azureContentSafety
ZhongpinWang 23cd5aa
fix: Changes from lint
6e20a48
Merge branch 'main' into refactor-content-filters
KavithaSiva a5fee4b
Merge branch 'main' into refactor-content-filters
ZhongpinWang 07ae577
chore: update changeset
ZhongpinWang b81fd07
refactor: rename azureContentSafety into buildAzureContentSafety
ZhongpinWang 4dca1b9
fix: Changes from lint
eee41e0
fix: test
ZhongpinWang d58970e
fix: Changes from lint
77af75e
chore: revert behaviour of buildAzureContentFilter
KavithaSiva 220f395
Merge branch 'main' into refactor-content-filters
KavithaSiva 37dc504
Merge branch 'main' into refactor-content-filters
KavithaSiva 8a4abb3
chore: changes from discussion
KavithaSiva 58e4a2d
chore: after discussion updates
KavithaSiva e86fb1f
chore: fix test
KavithaSiva ce1ac5a
chore: adjust documentation
KavithaSiva 8190455
Merge branch 'main' into refactor-content-filters
KavithaSiva cda132b
chore: address review comment
KavithaSiva 5960570
chore: correct deprecation message
KavithaSiva 2908711
feat: Add descriptive constant for Azure content filter configuration…
KavithaSiva a596608
chore: address review comment
KavithaSiva e26ced8
Update packages/orchestration/README.md
KavithaSiva fc6ee9b
chore: update release notes
KavithaSiva 4e394db
Merge branch 'refactor-content-filters' of github.com:SAP/ai-sdk-js i…
KavithaSiva 32c2526
Update .changeset/afraid-cooks-shave.md
KavithaSiva eaac8d3
Merge branch 'main' into refactor-content-filters
KavithaSiva ab358c2
chore: minor release note update
KavithaSiva 3a4abcf
Merge branch 'refactor-content-filters' of github.com:SAP/ai-sdk-js i…
KavithaSiva 67b876e
chore: adjust TSDoc
KavithaSiva 3b842cc
chore: update release notes
KavithaSiva 29ff38b
chore: remove test file from tsconfig.json
KavithaSiva 215f754
chore: rename request config
KavithaSiva bb3b537
chore: fix typo
KavithaSiva 00970f9
Update .changeset/afraid-cooks-shave.md
KavithaSiva 8a51d06
Update packages/orchestration/README.md
KavithaSiva 7caeeb4
Update packages/orchestration/README.md
KavithaSiva 202dddd
fix: Changes from lint
ac6b143
chore: update TSDoc
KavithaSiva 6d46b4c
Merge branch 'refactor-content-filters' of github.com:SAP/ai-sdk-js i…
KavithaSiva 3ee5f95
Update packages/orchestration/src/util/filtering.ts
KavithaSiva 6d5d65f
Update sample-code/src/orchestration.ts
KavithaSiva 4a0792e
chore: review comment
KavithaSiva 5d439e8
chore: add default value
KavithaSiva 0dfe5ff
Update packages/orchestration/src/orchestration-types.ts
KavithaSiva 56e49e8
chore: rename request-config
KavithaSiva 1b11568
Merge branch 'refactor-content-filters' of github.com:SAP/ai-sdk-js i…
KavithaSiva 8b0913c
chore: rename to module-config
KavithaSiva fabb56d
Merge branch 'main' into refactor-content-filters
KavithaSiva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@sap-ai-sdk/orchestration': minor | ||
--- | ||
|
||
[Compatibility Note] Deprecate `buildAzureContentFilter()` function. | ||
Use `buildAzureContentSafetyFilter()` function instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from './orchestration-client.js'; | ||
export * from './orchestration-utils.js'; | ||
export * from './util/index.js'; | ||
export * from './orchestration-types.js'; | ||
export * from './orchestration-response.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/orchestration/src/orchestration-completion-post-request-from-json.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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] can or does?
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.
It only throws an error for the case when the output gets filtered. So, I would like to leave it as can.