mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-05-15 11:57:12 +02:00
Updated integration tests
This commit is contained in:
parent
9a6065fdb3
commit
681a692ca9
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user