You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.out.println(conversation.ask("What's your name?").content());
32
37
// Output: I'm an AI language model developed by OpenAI, and I don't have a name. What can I help you with today?
33
38
System.out.println(conversation.ask("What did I ask you?").content());
34
39
// Output: You asked for my name.
40
+
conversation.save(); // Save the history manually, conversations are saved on shutdown by default.
35
41
36
42
finalvar conversation2 = chatGPT.newConversation("You are a software engineer.");
37
43
System.out.println(conversation2.ask("What's your job?").content());
38
-
// Output: As a software engineer, my job involves designing, developing, testing, and maintaining software systems and applications. It can involve tasks such as writing code, debugging programs, troubleshooting issues, and collaborating with other team members to ensure the overall functionality and efficiency of the software being developed. I may also need to work on improving existing software, conducting research to identify new technologies or methods that could benefit my team, and keeping up with industry trends and best practices to continuously improve my skills and knowledge.
39
44
System.out.println(conversation2.ask("What's your day to day work?").content());
40
-
// Output: As an AI language model, I do not have a physical day-to-day work environment. However, as a software engineer, a typical day may involve various activities such as:
0 commit comments