continue icon indicating copy to clipboard operation
continue copied to clipboard

"<COMPLETION>" in autocomplete output

Open canadiannomad opened this issue 1 year ago • 0 comments

Before submitting your bug report

Relevant environment info

- OS: macOS 12.7.4
- Continue: v0.9.132
- IDE:1.90.0-insider

  "tabAutocompleteModel": {
    "title": "GPT-4o",
    "provider": "openai",
    "model": "gpt-4o",
    "apiKey": "...",
  }

Description

Every time I try to get a completion the output starts with "<COMPLETION>...the code that could be inserted"

Here is what I see in the logs:

TASK: Fill the {{FILL_HERE}} hole. Answer only with the CORRECT completion, and NOTHING ELSE. Do it now.
<COMPLETION>==========================================================================
==========================================================================
Completion:

<COMPLETION>info!("Example");

And in the tab completion, I actually see the "<COMPLETION>" there.

Presumably that should be stripped.

To reproduce

Screen Shot 2024-05-15 at 10 53 11

Log output

This is an example of tab completion using gpt-4o <COMPLETION>model, which is a variant of the GPT-4 model developed by OpenAI.<COMPLETION> It is designed to provide more efficient and context-aware completions. <COMPLETION>It can be used for various applications, including code completion, text generation, and more. ... {{FILL_HERE}}
</QUERY>
TASK: Fill the {{FILL_HERE}} hole. Answer only with the CORRECT completion, and NOTHING ELSE. Do it now.
<COMPLETION>==========================================================================
==========================================================================
Completion:

<COMPLETION>Overall, it aims to enhance productivity and streamline workflows for developers and content creators.

canadiannomad avatar May 15 '24 16:05 canadiannomad