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
// This is the prompt that the bot will refer back to for every message.
34
-
ChatMessage prompt =ChatMessage.toSystemMessage("You are a customer support chat-bot. Write brief summaries of the user's questions so that agents can easily find the answer in a database.");
46
+
ChatMessage prompt =ChatMessage.toSystemMessage("You are ChatGPT, a helpful chat bot.");
35
47
36
48
// Use a mutable (modifiable) list! Always! You should be reusing the
37
49
// ChatRequest variable, so in order for a conversation to continue
@@ -46,6 +58,7 @@ public class JavaChatTest {
46
58
.messages(messages).build();
47
59
48
60
// Loads the API key from the .env file in the root directory.
61
+
// You should never put your API keys in code, keep your key safe!
49
62
String key =Dotenv.load().get("OPENAI_TOKEN");
50
63
OpenAI openai =newOpenAI(key);
51
64
@@ -74,9 +87,8 @@ public class JavaChatTest {
74
87
75
88
```
76
89
77
-
# Support
78
-
If I have saved you time, please consider [sponsoring me](https://github.com/sponsors/CJCrafter).
79
-
If you cannot financially support me, consider leaving a star on the repository and sharing it. Thanks!
90
+
## Support
91
+
If I have saved you time, please consider [sponsoring me](https://github.com/sponsors/CJCrafter).
80
92
81
-
# License
93
+
##License
82
94
ChatGPT-Java-API is licensed under the [MIT License](https://github.com/CJCrafter/ChatGPT-Java-API/blob/master/LICENSE).
0 commit comments