-
Notifications
You must be signed in to change notification settings - Fork 440
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(amazonq): validationException if empty supplemental context chunk is sent to the service #5920
Conversation
|
@@ -152,7 +152,7 @@ export async function fetchSupplementalContextForSrcV1( | |||
// DO NOT send code chunk with empty content | |||
getLogger().debug(`CodeWhisperer finished fetching crossfile context out of ${relevantCrossFilePaths.length} files`) | |||
return { | |||
supplementalContextItems: supplementalContexts.filter((item) => item.content.trim().length !== 0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to upstream caller supplementalContextUtil.ts
should probably refactor the entire structure of |
strategy: ${supplementalContext.strategy}`, | ||
4, | ||
true | ||
).trimStart() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for thinking about the log format, that helps with troubleshooting for both users and devs.
Problem
updated log string example
Solution
License: I confirm that my contribution is made under the terms of the Apache 2.0 license.