-
Notifications
You must be signed in to change notification settings - Fork 15
test: SpringAI Filtering #403
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
Conversation
...ation/src/main/java/com/sap/ai/sdk/orchestration/spring/OrchestrationSpringChatResponse.java
Outdated
Show resolved
Hide resolved
...-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java
Outdated
Show resolved
Hide resolved
| .getOutputFiltering(); | ||
| assertThat(filterResult.getMessage()).containsPattern("0 of \\d+ choices failed"); | ||
| } | ||
|
|
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.
Strict tests for hitting filters and lenient tests for non-hitting filters
...spring-app/src/main/java/com/sap/ai/sdk/app/controllers/SpringAiOrchestrationController.java
Show resolved
Hide resolved
rpanackal
left a comment
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.
LGTM. If you switch back to OpenAI model use, let me know so I can simply reapprove.
...-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java
Outdated
Show resolved
Hide resolved
...-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java
Outdated
Show resolved
Hide resolved
…es/SpringAiOrchestrationService.java Co-authored-by: Roshin Rajan Panackal <[email protected]>
|
I ran and tested it locally. Success 👍 |
Context
AI/ai-sdk-java-backlog#224
Feature scope:
Definition of Done
Aligned changes with the JavaScript SDKRelease notes updated