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.
22// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
33
44package 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}
You can’t perform that action at this time.
0 commit comments