-
Notifications
You must be signed in to change notification settings - Fork 16
chore: Translation Module Convenience #646
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
base: main
Are you sure you want to change the base?
Conversation
orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/SAPDocumentTranslationInput.java
Outdated
Show resolved
Hide resolved
…into translation-module-convenience
…into translation-module-convenience
…into translation-module-convenience
…into translation-module-convenience
…into translation-module-convenience
# Conflicts: # orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/SAPDocumentTranslationOutput.java
| .config( | ||
| SAPDocumentTranslationOutputConfig.create() | ||
| .targetLanguage(SAPDocumentTranslationOutputTargetLanguage.create("de-DE")) | ||
| .sourceLanguage("en-US")); |
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.
(Major)
These arguments need to be configurable fully for the convenience layer.
| SAPDocumentTranslationInputConfig.create() | ||
| .targetLanguage("en-US") | ||
| .applyTo(null))) | ||
| TranslationConfig.inputTranslation().getInputTranslationConfig()) |
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.
(Minor)
I would expect an overload for .withInputTranslationConfig(..) that expects a convenience class as argument, in parallel to existing generated class SAPDocumentTranslationOutput.
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.
Please compare to the other with- methods in OrchestrationModuleConfig, they translate a convenience argument to generated class.
Context
AI/ai-sdk-java-backlog#325.
Adding convenience methods for both input and output translation configs respectively.
Feature scope:
Definition of Done
Aligned changes with the JavaScript SDK