forked from Mirror/ollama4j
		
	Updated integration tests
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user