We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 276bf05 commit 4b07b5cCopy full SHA for 4b07b5c
packages/core/src/codewhispererChat/controllers/chat/chatRequest/converter.ts
@@ -41,6 +41,8 @@ const customerMessageSizeLimit = 4_000
41
export function triggerPayloadToChatRequest(triggerPayload: TriggerPayload): { conversationState: ConversationState } {
42
// Flexible truncation logic
43
let remainingPayloadSize = 100_000
44
+
45
+ // Type A context: Preserving user input as much as possible
46
const userInputTruncationInfo = preserveContexts(triggerPayload, remainingPayloadSize, ChatContextType.UserInput)
47
48
// Type B1(prompts) context: Preserving @prompt as much as possible
0 commit comments