Skip to content

Commit 3555a5f

Browse files
committed
d
1 parent ccf4b9b commit 3555a5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/src/codewhisperer/util/supplementalContext/supplementalContextUtil.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ export async function fetchSupplementalContext(
7373
})
7474
}
7575

76+
/**
77+
* Requirement
78+
* - Maximum 5 supplemental context.
79+
* - Each chunk can't exceed 10240 characters
80+
* - Sum of all chunks can't exceed 20480 characters
81+
*/
7682
export function truncateSuppelementalContext(
7783
context: CodeWhispererSupplementalContext
7884
): CodeWhispererSupplementalContext {

0 commit comments

Comments
 (0)