Skip to content

fix: Fallback to streamless code completion API requests before 16.7

Erran Carey requested to merge 1192-fallback-to-streaming-before-16.7 into main

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

These steps should be used to confirm the intended fix doesn't have complications for SaaS users:

  • 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

Merge request reports