Skip to content

Commit 25d8d4c

Browse files
authored
Update AutoManagedChatMemory.swift
1 parent 3a67130 commit 25d8d4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Tool/Sources/ChatAPIService/Memory/AutoManagedChatMemory.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ public enum AutoManagedChatMemoryActor: GlobalActor {
1010
}
1111

1212
protocol AutoManagedChatMemoryStrategy {
13-
func countToken(_ message: ChatMessage) async -> Int
13+
func countToken(_ message: ChatMessage) async
1414
}
1515

16-
/// A memory that automatically manages the history according to max tokens and max message count.
16+
/// A memory that automatically manages the history according to no max tokens and no max message count.
1717
public actor AutoManagedChatMemory: ChatMemory {
1818
public struct ComposableMessages {
1919
public var systemPromptMessage: ChatMessage

0 commit comments

Comments
 (0)