Skip to content

Add options argument to the CompletionWorker worker

Igor Drozdov requested to merge id-extend-completion-worker-with-options into master

What does this MR do and why?

::Llm::CompletionWorker is a general Sidekiq worker that allows scheduling tasks related to AI operations. Some of the Abstraction Layer implementations have additional arguments passed as input and require to have access to those arguments in the worker.

Let's extend the CompletionWorker#perform method signature and allow it to accept additional options argument.


Personally, I'm working on explaining the code for a selected code by a user and have a prompt that goes directly from Frontend. And a limited version of it should be passed to the worker. Even if it wasn't prompt but start-line and end-line of the selection, the worker would still needs access to it.

Edited by Igor Drozdov

Merge request reports

Loading