Updated integration tests

This commit is contained in:
Amith Koujalgi 2025-03-18 23:18:42 +05:30
parent 9a6065fdb3
commit 681a692ca9
No known key found for this signature in database
GPG Key ID: 3F065E7150B71F9D

View File

@ -203,12 +203,12 @@ public class OllamaAPIIntegrationTest {
@Test @Test
@Order(10) @Order(10)
public void testChat() throws Exception { public void testChat() throws Exception {
String chatModel = "qwen2.5:0.5b"; String chatModel = "llama3";
api.pullModel(chatModel); api.pullModel(chatModel);
OllamaChatRequestBuilder builder = OllamaChatRequestBuilder.getInstance(chatModel); OllamaChatRequestBuilder builder = OllamaChatRequestBuilder.getInstance(chatModel);
// Create the initial user question // Create the initial user question
OllamaChatRequest requestModel = builder.withMessage(OllamaChatMessageRole.USER, "What is 1+1?") OllamaChatRequest requestModel = builder.withMessage(OllamaChatMessageRole.USER, "What is 1+1? Answer only in numbers.")
.build(); .build();
// Start conversation with model // Start conversation with model