Skip to content

Add response modifier to categorize questions

Gosia Ksionek requested to merge mk-fix-categorize-quest into master

What does this MR do and why?

CategorizeQuestions class were not returning ResponseModifier object, hence were not processed properly here: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/services/llm/internal/completion_service.rb#L72

By adding simple response modifier - basically class that implements errors method and returns an array, we can fix that.

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.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

solves https://gitlab.com/gitlab-org/gitlab/-/issues/433199

Merge request reports