Skip to content

Commit

Permalink
PR Fix: updated LoadChatMessagesHistoryAsync documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRamosEs committed Feb 13, 2024
1 parent aae8b0a commit 4b8e8ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ public interface IChatHistoryProvider
/// <summary>
/// Loads chat history messages.
/// </summary>
/// <remarks>
/// The maximum number of messages to load is configured in <c>ChatHistoryProviderOptions.HistoryMaxMessages</c>.
/// </remarks>
/// <param name="chatHistory">The current chat history.</param>
/// <param name="userId">The unique identifier of the user that is owner of the chat.</param>
/// <param name="remainingTokens">The total remaining tokens available for loading messages from the chat history.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public ChatHistoryProvider(Func<string, int> tokensLengthFunction, IAsyncReposit
}

/// <inheritdoc/>
/// <remarks>
/// The maximum number of messages to load is configured in <c>ChatHistoryProviderOptions.HistoryMaxMessages</c>.
/// </remarks>
public async Task LoadChatMessagesHistoryAsync(ChatHistory chatHistory, string userId, int remainingTokens, CancellationToken cancellationToken)
{
if (options.HistoryMaxMessages <= 0 || remainingTokens <= 0)
Expand Down

0 comments on commit 4b8e8ec

Please sign in to comment.