This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch CAMEL-23206 in repository https://gitbox.apache.org/repos/asf/camel.git
commit cc8fc3608e38da4bc04ea491b81b1099bba8d872 Author: Guillaume Nodet <[email protected]> AuthorDate: Wed Mar 18 15:43:11 2026 +0100 CAMEL-23206: Fix flaky SpringAiChatParameterOverrideIT The testTopPOverrideViaHeader test asserted that AI-generated text contained specific words ("blue", "above", "high"), which is non-deterministic. Replace with isNotEmpty() check since the test's purpose is to verify the top_p parameter override works, not to validate model output content. Co-Authored-By: Claude Opus 4.6 <[email protected]> --- .../camel/component/springai/chat/SpringAiChatParameterOverrideIT.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/camel-spring-parent/camel-spring-ai/camel-spring-ai-chat/src/test/java/org/apache/camel/component/springai/chat/SpringAiChatParameterOverrideIT.java b/components/camel-spring-parent/camel-spring-ai/camel-spring-ai-chat/src/test/java/org/apache/camel/component/springai/chat/SpringAiChatParameterOverrideIT.java index 8ef46256bd4e..33cb387428e3 100644 --- a/components/camel-spring-parent/camel-spring-ai/camel-spring-ai-chat/src/test/java/org/apache/camel/component/springai/chat/SpringAiChatParameterOverrideIT.java +++ b/components/camel-spring-parent/camel-spring-ai/camel-spring-ai-chat/src/test/java/org/apache/camel/component/springai/chat/SpringAiChatParameterOverrideIT.java @@ -67,8 +67,7 @@ public class SpringAiChatParameterOverrideIT extends OllamaTestSupport { String response = exchange.getMessage().getBody(String.class); assertThat(response).isNotNull(); - // With low top_p, should get more deterministic responses - assertThat(response.toLowerCase()).containsAnyOf("blue", "above", "high"); + assertThat(response).isNotEmpty(); } @Test
