Skip to content

Commit 39c178b

Browse files
authored
update ChatModelInput example for the website
1 parent f16286c commit 39c178b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ Chatbot bot = new Chatbot(apiKey, "openai");
8181
// 2- prepare the chat history by calling addMessage.
8282
String mode = "You are a helpful astronomy assistant.";
8383
ChatModelInput input = new ChatGPTInput.Builder(mode)
84-
.addUserMessage("what is the space between moon and earth")
85-
.build();
84+
.addUserMessage("what is the space between moon and earth").build();
8685

8786
// 3- call chat!
8887
List<String> resValues = bot.chat(input);

0 commit comments

Comments
 (0)