Skip to content

Commit 4b07b5c

Browse files
committed
add missing comment
1 parent 276bf05 commit 4b07b5c

File tree

1 file changed

+2
-0
lines changed
  • packages/core/src/codewhispererChat/controllers/chat/chatRequest

1 file changed

+2
-0
lines changed

packages/core/src/codewhispererChat/controllers/chat/chatRequest/converter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ const customerMessageSizeLimit = 4_000
4141
export function triggerPayloadToChatRequest(triggerPayload: TriggerPayload): { conversationState: ConversationState } {
4242
// Flexible truncation logic
4343
let remainingPayloadSize = 100_000
44+
45+
// Type A context: Preserving user input as much as possible
4446
const userInputTruncationInfo = preserveContexts(triggerPayload, remainingPayloadSize, ChatContextType.UserInput)
4547

4648
// Type B1(prompts) context: Preserving @prompt as much as possible

0 commit comments

Comments
 (0)