Skip to content

Commit 5867dca

Browse files
committed
Fix typo
1 parent 37094e3 commit 5867dca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

OpenAI_API/Chat/Conversation.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public Conversation(ChatEndpoint endpoint, OpenAI_API.Models.Model model = null,
7171
private List<ChatMessage> _Messages;
7272

7373
/// <summary>
74-
/// Appends a <see cref="ChatMessage"/> to the chat hstory
74+
/// Appends a <see cref="ChatMessage"/> to the chat history
7575
/// </summary>
7676
/// <param name="message">The <see cref="ChatMessage"/> to append to the chat history</param>
7777
public void AppendMessage(ChatMessage message)
@@ -80,33 +80,33 @@ public void AppendMessage(ChatMessage message)
8080
}
8181

8282
/// <summary>
83-
/// Creates and appends a <see cref="ChatMessage"/> to the chat hstory
83+
/// Creates and appends a <see cref="ChatMessage"/> to the chat history
8484
/// </summary>
8585
/// <param name="role">The <see cref="ChatMessageRole"/> for the message. Typically, a conversation is formatted with a system message first, followed by alternating user and assistant messages. See <see href="https://platform.openai.com/docs/guides/chat/introduction">the OpenAI docs</see> for more details about usage.</param>
8686
/// <param name="content">The content of the message)</param>
8787
public void AppendMessage(ChatMessageRole role, string content) => this.AppendMessage(new ChatMessage(role, content));
8888

8989
/// <summary>
90-
/// Creates and appends a <see cref="ChatMessage"/> to the chat hstory with the Role of <see cref="ChatMessageRole.User"/>. 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.
90+
/// Creates and appends a <see cref="ChatMessage"/> to the chat history with the Role of <see cref="ChatMessageRole.User"/>. 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.
9191
/// </summary>
9292
/// <param name="content">Text content generated by the end users of an application, or set by a developer as an instruction</param>
9393
public void AppendUserInput(string content) => this.AppendMessage(new ChatMessage(ChatMessageRole.User, content));
9494

9595
/// <summary>
96-
/// Creates and appends a <see cref="ChatMessage"/> to the chat hstory with the Role of <see cref="ChatMessageRole.User"/>. 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.
96+
/// Creates and appends a <see cref="ChatMessage"/> to the chat history with the Role of <see cref="ChatMessageRole.User"/>. 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.
9797
/// </summary>
9898
/// <param name="userName">The name of the user in a multi-user chat</param>
9999
/// <param name="content">Text content generated by the end users of an application, or set by a developer as an instruction</param>
100100
public void AppendUserInputWithName(string userName, string content) => this.AppendMessage(new ChatMessage(ChatMessageRole.User, content) { Name = userName });
101101

102102

103103
/// <summary>
104-
/// Creates and appends a <see cref="ChatMessage"/> to the chat hstory with the Role of <see cref="ChatMessageRole.System"/>. The system message helps set the behavior of the assistant.
104+
/// Creates and appends a <see cref="ChatMessage"/> to the chat history with the Role of <see cref="ChatMessageRole.System"/>. The system message helps set the behavior of the assistant.
105105
/// </summary>
106106
/// <param name="content">text content that helps set the behavior of the assistant</param>
107107
public void AppendSystemMessage(string content) => this.AppendMessage(new ChatMessage(ChatMessageRole.System, content));
108108
/// <summary>
109-
/// Creates and appends a <see cref="ChatMessage"/> to the chat hstory with the Role of <see cref="ChatMessageRole.Assistant"/>. Assistant messages can be written by a developer to help give examples of desired behavior.
109+
/// Creates and appends a <see cref="ChatMessage"/> to the chat history with the Role of <see cref="ChatMessageRole.Assistant"/>. Assistant messages can be written by a developer to help give examples of desired behavior.
110110
/// </summary>
111111
/// <param name="content">Text content written by a developer to help give examples of desired behavior</param>
112112
public void AppendExampleChatbotOutput(string content) => this.AppendMessage(new ChatMessage(ChatMessageRole.Assistant, content));

0 commit comments

Comments
 (0)