Skip to content

Commit 32897d2

Browse files
authored
Changed method names (#1039)
1 parent 6a32265 commit 32897d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cloudbank-v4/chatbot/src/main/java/com/example/chatbot/controller/ChatController.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, Oracle and/or its affiliates.
1+
// Copyright (c) 2024, 2025, Oracle and/or its affiliates.
22
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
33

44
package com.example.chatbot.controller;
@@ -35,13 +35,13 @@ public String chat(@RequestBody String question) {
3535
ChatResponse response = chatModel.call(
3636
new Prompt(question,
3737
OllamaOptions.builder()
38-
.withModel(OllamaModel.LLAMA3)
39-
.withTemperature(0.4d)
38+
.model(OllamaModel.LLAMA3)
39+
.temperature(0.4d)
4040
.build()
4141
));
4242

43-
return response.getResult().getOutput().getContent();
44-
43+
return response.getResult().getOutput().getText();
44+
4545
}
4646

4747
}

0 commit comments

Comments
 (0)