Skip to content

Trim further file content for code suggestions

Jan Provaznik requested to merge jp-flag-removal into master

What does this MR do and why?

Enables code_suggestions_short_prompt flag by default

File content is trimmed to 50000 characters now (instead of ~400K). The reason is that response time grows with prompt size and for bigger file contents response time is way too long.

Related to #442892 (closed)

Related to https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/issues/362

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Matt Nohr

Merge request reports