Skip to content

Commit cc9636e

Browse files
authored
update ChatModelInput example
1 parent 0a7702c commit cc9636e

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
@@ -114,8 +114,7 @@ Chatbot bot = new Chatbot(apiKey, SupportedChatModels.openai);
114114
// 2- prepare the chat history by calling addMessage.
115115
String mode = "You are a helpful astronomy assistant.";
116116
ChatModelInput input = new ChatGPTInput.Builder(mode)
117-
.addUserMessage("what is the space between moon and earth")
118-
.build();
117+
.addUserMessage("what is the space between moon and earth").build();
119118

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

0 commit comments

Comments
 (0)