File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
cloudbank-v4/chatbot/src/main/java/com/example/chatbot/controller Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- // Copyright (c) 2024, Oracle and/or its affiliates.
1
+ // Copyright (c) 2024, 2025, Oracle and/or its affiliates.
2
2
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3
3
4
4
package com .example .chatbot .controller ;
@@ -35,13 +35,13 @@ public String chat(@RequestBody String question) {
35
35
ChatResponse response = chatModel .call (
36
36
new Prompt (question ,
37
37
OllamaOptions .builder ()
38
- .withModel (OllamaModel .LLAMA3 )
39
- .withTemperature (0.4d )
38
+ .model (OllamaModel .LLAMA3 )
39
+ .temperature (0.4d )
40
40
.build ()
41
41
));
42
42
43
- return response .getResult ().getOutput ().getContent ();
44
-
43
+ return response .getResult ().getOutput ().getText ();
44
+
45
45
}
46
46
47
47
}
You can’t perform that action at this time.
0 commit comments