Skip to content

Commit c1edf6d

Browse files
committed
Adjust minimum reply token count to avoid cut off when RAG is used
1 parent a00dd49 commit c1edf6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tool/Sources/OpenAIService/Configuration/UserPreferenceChatGPTConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public struct UserPreferenceChatGPTConfiguration: ChatGPTConfiguration {
3333
}
3434

3535
public var minimumReplyTokens: Int {
36-
300
36+
maxTokens / 5
3737
}
3838

3939
public var runFunctionsAutomatically: Bool {

0 commit comments

Comments
 (0)