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
Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/completion/chat/ChatMessage.java
+2-3
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,13 @@
1
1
packagecom.theokanning.openai.completion.chat;
2
2
3
3
importlombok.AllArgsConstructor;
4
-
importlombok.Builder;
5
4
importlombok.Data;
6
5
importlombok.NoArgsConstructor;
7
6
8
7
/**
9
-
* <p>Each object has a role (either “system”, “user”, or “assistant”) and content (the content of the message). Conversations can be as short as 1 message or fill many pages.</p>
8
+
* <p>Each object has a role (either "system", "user", or "assistant") and content (the content of the message). Conversations can be as short as 1 message or fill many pages.</p>
10
9
* <p>Typically, a conversation is formatted with a system message first, followed by alternating user and assistant messages.</p>
11
-
* <p>The system message helps set the behavior of the assistant. In the example above, the assistant was instructed with “You are a helpful assistant.”<br>
10
+
* <p>The system message helps set the behavior of the assistant. In the example above, the assistant was instructed with "You are a helpful assistant."<br>
12
11
* The user messages help instruct the assistant. They can be generated by the end users of an application, or set by a developer as an instruction.<br>
13
12
* The assistant messages help store prior responses. They can also be written by a developer to help give examples of desired behavior.
0 commit comments