Skip to content

Commit 0ec7597

Browse files
committed
Added a default value for MaxTokens.
1 parent 764e4ba commit 0ec7597

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/KernelMemory.Extensions/Cohere/RawCohereClientDtos.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public static CohereRagRequest CreateFromMemoryRecord(string question, IEnumerab
3737
CohereRagRequest ragRequest = new CohereRagRequest()
3838
{
3939
Message = question,
40-
Documents = new List<RagDocument>()
40+
Documents = new List<RagDocument>(),
41+
MaxTokens = 1000,
4142
};
4243

4344
foreach (var memory in memoryRecords)

0 commit comments

Comments
 (0)