Commit e14e285
authored
fix(amazonq): limit maximum size of supplementalContext being sent (#5877)
## Problem
We found there were lots of cases where open tabs context sent from the
plugins with total length > 10240 chars long, which will result in
`validationException` error while users trigger inline completion
service.
## Solution
Limit maximum length of supplemental context added in the result set and
meanwhile Q team is conducting investigation to root cause it.
---
<!--- REMINDER: Ensure that your PR meets the guidelines in
CONTRIBUTING.md -->
License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.1 parent 980710d commit e14e285
File tree
3 files changed
+12
-0
lines changed- packages
- amazonq/.changes/next-release
- core/src/codewhisperer
- models
- util/supplementalContext
3 files changed
+12
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
| 715 | + | |
715 | 716 | | |
716 | 717 | | |
717 | 718 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
138 | 145 | | |
139 | 146 | | |
140 | 147 | | |
| |||
0 commit comments