This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Commit 09060f1
Add input processing pipeline + codegate-version pipeline step
This adds a pipeline processing before the completion is ran where
the request is either change or can be shortcut. This pipeline consists
of steps, for now we implement a single step `CodegateVersion` that
responds with the codegate version if the verbatim `codegate-version`
string is found in the input.
The pipeline also passes along a context, for now that is unused but I
thought this would be where we store extracted code snippets etc.
To avoid import loops, we also move the `BaseCompletionHandler` class to
a new `completion` package.
Since the shortcut replies are more or less simple strings, we add yet
another package `providers/formatting` whose responsibility is to
convert the string returned by the shortcut response to the format
expected by the client, meaning either a reply or a stream of replies in
the LLM-specific format. We use the `BaseCompletionHandler` as a way to
convert to the LLM-specific format.1 parent 1c73d91 commit 09060f1
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments