Duo adds triple backticks to autocomplete suggestions
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: 6.38.1
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.103.2
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: v18.2.1-ee
Summary
When editing Python files using Duo, configured to use OpenAI GPT-4o via the AI Gateway, autocomplete adds triple backticks to its suggestions (almost as though it thinks it's editing a markdown file).
This is on a self-hosted Gitlab instance. The model is configured as a self-hosted model, as follows:
- Platform: API
- Model family: GPT
- Endpoint: https://api.openai.com/v1
- Model identifier: openai/gpt-4o
Steps to reproduce
Open a .py file, start typing code, wait for Duo autocomplete to provide a suggestion.
What is the current bug behavior?
The suggestion comes wrapped in triple backticks.
What is the expected correct behavior?
The suggestion should be provided without backticks.
