fix: Fallback to streamless code completion API requests before 16.7
Description
When we detect a user intends to generate code in the extension we make the decision to stream the response. This works for newer GitLab instances but we should fallback to the streamless inline completion API for older instances.
Related Issues
Resolves #1192 (closed).
How has this been tested?
-
New unit test coverage.
Manual steps
-
Local testing with development extension against GitLab.com -
Local testing with development extension against instance < 16.7.
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Erran Carey