Update OllamaAPIIntegrationTest.java

This commit is contained in:
amithkoujalgi 2025-08-30 20:54:18 +05:30
parent be5b77c4ac
commit 8e50bc8d75
No known key found for this signature in database
GPG Key ID: E29A37746AF94B70

View File

@ -363,21 +363,6 @@ class OllamaAPIIntegrationTest {
sb.append(substring); sb.append(substring);
LOG.info(substring); LOG.info(substring);
}); });
// assertNotNull(chatResult);
// assertNotNull(chatResult.getResponseModel());
// assertNotNull(chatResult.getResponseModel().getMessage());
// assertNotNull(chatResult.getResponseModel().getMessage().getContent());
// assertTrue(sb.toString().toLowerCase().contains("Rahul Kumar".toLowerCase()));
// assertTrue(chatResult.getResponseModel().getMessage().getContent().toLowerCase()
// .contains("Rahul Kumar".toLowerCase()));
//
// boolean toolCallMessageFound = false;
// for (OllamaChatMessage message : chatResult.getChatHistory()) {
// if (message.getToolCalls() != null && !message.getToolCalls().isEmpty()) {
// toolCallMessageFound = true;
// }
// }
// assertTrue(toolCallMessageFound, "Expected at least one message in chat history to have tool calls");
assertNotNull(chatResult, "chatResult should not be null"); assertNotNull(chatResult, "chatResult should not be null");
assertNotNull(chatResult.getResponseModel(), "Response model should not be null"); assertNotNull(chatResult.getResponseModel(), "Response model should not be null");