Skip to content

Commit

Permalink
Changed method names (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
andytael authored Jan 28, 2025
1 parent 6a32265 commit 32897d2
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, Oracle and/or its affiliates.
// Copyright (c) 2024, 2025, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/

package com.example.chatbot.controller;
Expand Down Expand Up @@ -35,13 +35,13 @@ public String chat(@RequestBody String question) {
ChatResponse response = chatModel.call(
new Prompt(question,
OllamaOptions.builder()
.withModel(OllamaModel.LLAMA3)
.withTemperature(0.4d)
.model(OllamaModel.LLAMA3)
.temperature(0.4d)
.build()
));

return response.getResult().getOutput().getContent();
return response.getResult().getOutput().getText();

}

}

0 comments on commit 32897d2

Please sign in to comment.