mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-09-16 03:39:05 +02:00
Update OllamaAPIIntegrationTest.java
This commit is contained in:
parent
be5b77c4ac
commit
8e50bc8d75
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user