Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(inline-completion): potential inline completion failure due to input validation exception of supplemental context #6758

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Will-ShaoHua
Copy link
Contributor

@Will-ShaoHua Will-ShaoHua commented Mar 11, 2025

Problem

ERROR: at 'supplementalContexts' failed to satisfy constraint: Member must have length less than or equal to 5

ERROR: supplementalContexts.1.member.content' failed to satisfy constraint: Member must have length less than or equal to 10240

Solution

Jebtrains PR aws/aws-toolkit-jetbrains#5466

 * Requirement
 * - Maximum 5 supplemental context.
 * - Each chunk can't exceed 10240 characters
 * - Sum of all chunks can't exceed 20480 characters

  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

@Will-ShaoHua Will-ShaoHua changed the title fix(amazonq): fix(inline-completion): potential inline completion failure due to input validation exception of supplemental context Mar 11, 2025
@Will-ShaoHua Will-ShaoHua marked this pull request as ready for review March 11, 2025 10:46
@Will-ShaoHua Will-ShaoHua requested review from a team as code owners March 11, 2025 10:46
@Will-ShaoHua Will-ShaoHua marked this pull request as draft March 11, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant